提交 32ac057c 编写于 作者: Mosher's avatar Mosher

update:更新

上级 432aedee
...@@ -23,18 +23,18 @@ ...@@ -23,18 +23,18 @@
</#if> </#if>
<#else> <#else>
<#if item.getUILogicAttachMode?? && item.getUILogicAttachMode()?? && item.getUILogicAttachMode() == 'AFTER' && item.getPSAppDEUILogic?? && item.getPSAppDEUILogic()??> <#if item.getUILogicAttachMode?? && item.getUILogicAttachMode()?? && item.getUILogicAttachMode() == 'AFTER' && item.getPSAppDEUILogic?? && item.getPSAppDEUILogic()??>
const _context: any = Object.assign(context, actionContext.context); const _context: any = Object.assign(context, actionContext.context);
const _params: any = Object.assign(params, actionContext.viewparams); const _params: any = Object.assign(params, actionContext.viewparams);
<#if item.getPSAppDataEntity?? && item.getPSAppDataEntity()?? && item.getPSAppDEUILogic().getPSAppDataEntity?? && item.getPSAppDEUILogic().getPSAppDataEntity()?? && item.getPSAppDataEntity().codeName == item.getPSAppDEUILogic().getPSAppDataEntity().codeName> <#if item.getPSAppDataEntity?? && item.getPSAppDataEntity()?? && item.getPSAppDEUILogic().getPSAppDataEntity?? && item.getPSAppDEUILogic().getPSAppDataEntity()?? && item.getPSAppDataEntity().codeName == item.getPSAppDEUILogic().getPSAppDataEntity().codeName>
return this.executeUILogic('${item.getPSAppDEUILogic().codeName}', args, _context, _params, $event, xData, actionContext, srfParentDeName); return this.executeUILogic('${item.getPSAppDEUILogic().codeName}', args, _context, _params, $event, xData, actionContext, srfParentDeName);
<#elseif item.getPSAppDEUILogic().getPSAppDataEntity?? && item.getPSAppDEUILogic().getPSAppDataEntity()??> <#elseif item.getPSAppDEUILogic().getPSAppDataEntity?? && item.getPSAppDEUILogic().getPSAppDataEntity()??>
const uiService = await window.uiServiceRegister.getService('${item.getPSAppDEUILogic().getPSAppDataEntity().codeName?lower_case}'); const uiService = await window.uiServiceRegister.getService('${item.getPSAppDEUILogic().getPSAppDataEntity().codeName?lower_case}');
if (uiService) { if (uiService) {
return uiService.executeUILogic('${item.getPSAppDEUILogic().codeName}', args, _context, _params, $event, xData, actionContext, srfParentDeName); return uiService.executeUILogic('${item.getPSAppDEUILogic().codeName}', args, _context, _params, $event, xData, actionContext, srfParentDeName);
} }
</#if> </#if>
<#else> <#else>
return { ok: true, result: ${resultData} }; return { ok: true, result: ${resultData} };
</#if> </#if>
</#if> </#if>
</#macro> </#macro>
...@@ -79,8 +79,6 @@ ${front_block} ...@@ -79,8 +79,6 @@ ${front_block}
let tempData: any = {}; let tempData: any = {};
let tempContext: any = {}; let tempContext: any = {};
let tempViewParam: any = {}; let tempViewParam: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext; const _this: any = actionContext;
<#-- 是否先保存目标数据start --> <#-- 是否先保存目标数据start -->
<#if item.isSaveTargetFirst()> <#if item.isSaveTargetFirst()>
...@@ -425,7 +423,7 @@ ${front_block} ...@@ -425,7 +423,7 @@ ${front_block}
openPopupApp(result.url); openPopupApp(result.url);
} else if (Object.is(result.openmode, 'INDEXVIEWTAB') || Object.is(result.openmode, '')) { } else if (Object.is(result.openmode, 'INDEXVIEWTAB') || Object.is(result.openmode, '')) {
const viewpath = ${r'`${result.viewmodule}_${result.viewname}`.toLowerCase()'}; const viewpath = ${r'`${result.viewmodule}_${result.viewname}`.toLowerCase()'};
openIndexViewTab(viewpath, data); return openIndexViewTab(viewpath, data);
} else if (Object.is(result.openmode, 'POPUPMODAL')) { } else if (Object.is(result.openmode, 'POPUPMODAL')) {
const viewname = actionContext.$util.srfFilePath2(result.viewname); const viewname = actionContext.$util.srfFilePath2(result.viewname);
const view: any = { const view: any = {
...@@ -434,7 +432,7 @@ ${front_block} ...@@ -434,7 +432,7 @@ ${front_block}
width: result.width, width: result.width,
height: result.height, height: result.height,
} }
openPopupModal(view,context,data); return openPopupModal(view,context,data);
} else if (result.openmode.startsWith('DRAWER')) { } else if (result.openmode.startsWith('DRAWER')) {
const viewname = actionContext.$util.srfFilePath2(result.viewname); const viewname = actionContext.$util.srfFilePath2(result.viewname);
const view: any = { const view: any = {
...@@ -444,7 +442,7 @@ ${front_block} ...@@ -444,7 +442,7 @@ ${front_block}
height: result.height, height: result.height,
placement: result.openmode, placement: result.openmode,
} }
openDrawer(view,context,data); return openDrawer(view,context,data);
} else if (Object.is(result.openmode, 'POPOVER')) { } else if (Object.is(result.openmode, 'POPOVER')) {
const viewname = actionContext.$util.srfFilePath2(result.viewname); const viewname = actionContext.$util.srfFilePath2(result.viewname);
const view: any = { const view: any = {
...@@ -454,7 +452,7 @@ ${front_block} ...@@ -454,7 +452,7 @@ ${front_block}
height: result.height, height: result.height,
placement: result.openmode, placement: result.openmode,
} }
openPopOver(view,context,data); return openPopOver(view,context,data);
} }
}).catch((response: any) => { }).catch((response: any) => {
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -475,7 +473,7 @@ ${front_block} ...@@ -475,7 +473,7 @@ ${front_block}
// 后续界面行为 // 后续界面行为
<@nextUIActionLogic 'args' /> <@nextUIActionLogic 'args' />
} }
openIndexViewTab(data); return openIndexViewTab(data);
<#-- END: 打开顶级分页视图 --> <#-- END: 打开顶级分页视图 -->
<#-- BEGIN: 打开模态 --> <#-- BEGIN: 打开模态 -->
<#elseif dataview.getOpenMode() = 'POPUPMODAL'> <#elseif dataview.getOpenMode() = 'POPUPMODAL'>
...@@ -496,7 +494,7 @@ ${front_block} ...@@ -496,7 +494,7 @@ ${front_block}
width: ${dataview.getWidth()?c}, width: ${dataview.getWidth()?c},
title: actionContext.<@getViewLanguageTitle dataview />, title: actionContext.<@getViewLanguageTitle dataview />,
}; };
openPopupModal(view, data); return openPopupModal(view, data);
<#-- END: 打开模态 --> <#-- END: 打开模态 -->
<#-- BEGIN: 打开抽屉 --> <#-- BEGIN: 打开抽屉 -->
<#elseif dataview.getOpenMode()?index_of('DRAWER') == 0> <#elseif dataview.getOpenMode()?index_of('DRAWER') == 0>
...@@ -517,7 +515,7 @@ ${front_block} ...@@ -517,7 +515,7 @@ ${front_block}
title: actionContext.<@getViewLanguageTitle dataview />, title: actionContext.<@getViewLanguageTitle dataview />,
placement: '${dataview.getOpenMode()}', placement: '${dataview.getOpenMode()}',
}; };
openDrawer(view, data); return openDrawer(view, data);
<#-- END: 打开抽屉 --> <#-- END: 打开抽屉 -->
<#-- BEGIN: 打开气泡卡片 --> <#-- BEGIN: 打开气泡卡片 -->
<#elseif dataview.getOpenMode() == 'POPOVER'> <#elseif dataview.getOpenMode() == 'POPOVER'>
...@@ -539,7 +537,7 @@ ${front_block} ...@@ -539,7 +537,7 @@ ${front_block}
title: actionContext.<@getViewLanguageTitle dataview />, title: actionContext.<@getViewLanguageTitle dataview />,
placement: '${dataview.getOpenMode()}', placement: '${dataview.getOpenMode()}',
}; };
openPopOver(view, data); return openPopOver(view, data);
<#-- END: 打开气泡卡片 --> <#-- END: 打开气泡卡片 -->
<#-- BEGIN: 其他打开模式 --> <#-- BEGIN: 其他打开模式 -->
<#else> <#else>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<script lang='tsx'> <script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch,Inject } from 'vue-property-decorator'; import { Vue, Component, Prop, Provide, Emit, Watch,Inject } from 'vue-property-decorator';
import { UIActionTool, Util } from '@/utils'; import { UIActionTool, Util } from '@/utils';
import axios from 'axios';
import { AppMessageBox } from '@/utils/app-message-box/app-message-box'; import { AppMessageBox } from '@/utils/app-message-box/app-message-box';
import NavDataService from '@/service/app/navdata-service'; import NavDataService from '@/service/app/navdata-service';
<#if view.getPSAppCounterRefs()??> <#if view.getPSAppCounterRefs()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册