提交 2217ca35 编写于 作者: KK's avatar KK

应用视图应用导航参数

上级 d5ab1486
<#ibizinclude>../../@MACRO/View.ftl</#ibizinclude>
<#ibizinclude>../../@MACRO/RouteParameters.ftl</#ibizinclude>
<#ibizinclude>../../../../@NAVPARAMS/FUNC/PUBLIC.vue.ftl</#ibizinclude>
<#if item.getPSViewLogic?? && item.getPSViewLogic()??>
<#assign viewlogic = item.getPSViewLogic()/>
/**
......@@ -24,6 +25,15 @@
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/>
......@@ -32,23 +42,23 @@
<#if dataview.isRedirectView()>
<#assign dataview_de = dataview.getPSDataEntity()/>
const url: string = '/${app.getPKGCodeName()?lower_case}/${dataview_de.getPSSystemModule().codeName?lower_case}/${dataview_de.codeName?lower_case}/${dataview.getPSDEViewCodeName()?lower_case}/getmodel';
response = await this.globaluiservice.openService.openRedirect(url, context, params);
response = await this.globaluiservice.openService.openRedirect(url, _context, _params);
<#elseif dataview.getOpenMode() == 'INDEXVIEWTAB' || dataview.getOpenMode() == ''>
<#-- 打开顶级分页视图 -->
<#-- 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册