提交 5edaf8e2 编写于 作者: KK's avatar KK

应用视图引用导航参数——新建

上级 e808f2aa
......@@ -30,6 +30,16 @@
Object.assign(context, args[0]);
}
let response: any = null;
<#if view.getPSAppViewRefs?? && view.getPSAppViewRefs()??>
<#list view.getPSAppViewRefs() as refItem>
<#if refItem.getName() == 'EDITDATA'>
let panelNavParam = <@getNavigateParams refItem />;
let panelNavContext = <@getNavigateContext refItem />;
//导航参数处理
const { context: _context, param: _params } = this.$viewTool.formatNavigateParam( panelNavContext, panelNavParam, context, params, {});
</#if>
</#list>
</#if>
<#-- BEGIN: 输出视图数据 -->
<#if !(dataview.isRedirectView()) && (dataview.getOpenMode() == 'POPUPMODAL' || dataview.getOpenMode()?index_of('DRAWER') == 0 || dataview.getOpenMode() =='POPOVER')>
<@outPutViewInfo dataview/>
......@@ -40,17 +50,17 @@
<#-- BEGIN:准备参数 -->
<@outPutRouteParameters dataview/>
<#-- END:准备参数 -->
const routeParam: any = this.globaluiservice.openService.formatRouteParam(context, deResParameters, parameters, args, params);
const routeParam: any = this.globaluiservice.openService.formatRouteParam(_context, deResParameters, parameters, args, _params);
response = await this.globaluiservice.openService.openView(routeParam);
<#elseif dataview.getOpenMode() = 'POPUPMODAL'>
<#-- 打开模态 -->
response = await this.globaluiservice.openService.openModal(view, context, params);
response = await this.globaluiservice.openService.openModal(view, _context, _params);
<#elseif dataview.getOpenMode()?index_of('DRAWER') == 0>
<#-- 打开抽屉 -->
response = await this.globaluiservice.openService.openDrawer(view, context, params);
response = await this.globaluiservice.openService.openDrawer(view, _context, _params);
<#elseif dataview.getOpenMode() == 'POPOVER'>
<#-- 打开气泡卡片 -->
response = await this.globaluiservice.openService.openPopOver(view, context, params);
response = await this.globaluiservice.openService.openPopOver(view, _context, _params);
<#else>
this.$notice.warning('${dataview.title} 不支持该模式打开');
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册