提交 0dbc2bab 编写于 作者: KK's avatar KK

后台界面行为调用

上级 5139ac0c
<#-- 后台界面行为 -->
<#ibizinclude>../../@MACRO/View.ftl</#ibizinclude>
<#ibizinclude>../../../@NAVPARAMS/FUNC/PUBLIC.vue.ftl</#ibizinclude>
<#if backend_block??>
${backend_block}
<#else>
......@@ -62,11 +63,15 @@ ${backend_block}
};
Object.assign(context, parentObj);
Object.assign(params, parentObj);
// 导航参数
let panelNavParam= <@getNavigateParams item />;
let panelNavContext= <@getNavigateContext item />;
let { context: _context, param: _params } = this.viewTool.formatNavigateParam( panelNavContext, panelNavParam, context, params, {});
<#-- 构建srfparentdename和srfparentkey end -->
// 直接调实体服务需要转换的数据
if (context && context.srfsessionid) {
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
if (_context && _context.srfsessionid) {
_context.srfsessionkey = _context.srfsessionid;
delete _context.srfsessionid;
}
<#-- 关闭编辑视图 -->
<#if item.isCloseEditView()>
......@@ -78,7 +83,7 @@ ${backend_block}
<#if item.isShowBusyIndicator()>
Loading.show();
</#if>
const response: any = await curUIService.${item.getPSAppDEMethod().getCodeName()}(context, params);
const response: any = await curUIService.${item.getPSAppDEMethod().getCodeName()}(_context, _params);
<#if item.isShowBusyIndicator()>
Loading.hidden();
</#if>
......@@ -137,10 +142,10 @@ ${backend_block}
<#assign frontview = item.getFrontPSAppView()>
<#-- 抽屉打开 -->
<#if frontview.getOpenMode()?index_of('DRAWER') == 0>
const result: any = await this.openService.openPopOver(view, context, params);
const result: any = await this.openService.openPopOver(view, _context, _params);
<#-- 模态打开 -->
<#else>
const result: any = await this.openService.openModal(view, context, params);
const result: any = await this.openService.openModal(view, _context, _params);
</#if>
if (result && Object.is(result.ret, 'OK')) {
Object.assign(params, { srfactionparam: result.datas });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册