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

update 应用功能参数

上级 8012d30c
...@@ -13,11 +13,14 @@ protected click${item.codeName}(item: any = {}) { ...@@ -13,11 +13,14 @@ protected click${item.codeName}(item: any = {}) {
<#if dataview.isRedirectView()> <#if dataview.isRedirectView()>
this.$notify({ type: 'warning', message: '重定向视图暂不支持应用功能打开' }); this.$notify({ type: 'warning', message: '重定向视图暂不支持应用功能打开' });
<#else> <#else>
let params: any = <@getNavigateParams item />; let _params: any = <@getNavigateParams item />;
let _context: any = <@getNavigateContext item />; let _context: any = <@getNavigateContext item />;
<#if item.getOpenViewParam?? && item.getOpenViewParam()??> <#if item.getOpenViewParam?? && item.getOpenViewParam()??>
Object.assign(params, ${item.getOpenViewParam()}); Object.assign(_params, ${item.getOpenViewParam()});
</#if> </#if>
const param = this.$viewTool.doEditorItemParam({context:_context,param:_context},this.context,this.viewparams,{});
_context = Object.assign({...this.context},param.context);
_params = Object.assign({...this.viewparams},param.param);
<#if dataview.getOpenMode() == 'POPUPMODAL' || dataview.getOpenMode() == 'POPUPAPP' || dataview.getOpenMode() == 'POPOVER' || dataview.getOpenMode()?index_of('DRAWER') == 0 > <#if dataview.getOpenMode() == 'POPUPMODAL' || dataview.getOpenMode() == 'POPUPAPP' || dataview.getOpenMode() == 'POPOVER' || dataview.getOpenMode()?index_of('DRAWER') == 0 >
<@outPutViewInfo dataview/> <@outPutViewInfo dataview/>
</#if> </#if>
...@@ -43,23 +46,23 @@ protected click${item.codeName}(item: any = {}) { ...@@ -43,23 +46,23 @@ protected click${item.codeName}(item: any = {}) {
</#if> </#if>
<#-- END:是否应用实体视图 --> <#-- END:是否应用实体视图 -->
<#-- END:准备参数 --> <#-- END:准备参数 -->
const routeParam: any = this.globaluiservice.openService.formatRouteParam({ ...this.context }, deResParameters, parameters, [], params); const routeParam: any = this.globaluiservice.openService.formatRouteParam(_context, deResParameters, parameters, [], _params);
this.globaluiservice.openService.openView(routeParam); this.globaluiservice.openService.openView(routeParam);
</#if> </#if>
<#if dataview.getOpenMode() == 'POPUP'> <#if dataview.getOpenMode() == 'POPUP'>
console.log('-----POPUP-----非模式弹出,暂时不实现'); console.log('-----POPUP-----非模式弹出,暂时不实现');
</#if> </#if>
<#if dataview.getOpenMode() == 'POPUPMODAL'> <#if dataview.getOpenMode() == 'POPUPMODAL'>
this.globaluiservice.openService.openModal(view, { ...this.context }, params); this.globaluiservice.openService.openModal(view, _context, _params);
</#if> </#if>
<#if dataview.getOpenMode() == 'POPUPAPP'> <#if dataview.getOpenMode() == 'POPUPAPP'>
console.log('-----POPUPAPP-----独立程序弹出,暂时不实现'); console.log('-----POPUPAPP-----独立程序弹出,暂时不实现');
</#if> </#if>
<#if dataview.getOpenMode()?index_of('DRAWER') == 0> <#if dataview.getOpenMode()?index_of('DRAWER') == 0>
this.globaluiservice.openService.openDrawer(view, { ...this.context }, params); this.globaluiservice.openService.openDrawer(view, _context, _params);
</#if> </#if>
<#if dataview.getOpenMode() == 'POPOVER'> <#if dataview.getOpenMode() == 'POPOVER'>
this.globaluiservice.openService.openPopOver(view, { ...this.context }, params); this.globaluiservice.openService.openPopOver(view, _context, _params);
</#if> </#if>
<#if dataview.getOpenMode()?index_of('USER') == 0> <#if dataview.getOpenMode()?index_of('USER') == 0>
console.log('-----${dataview.getOpenMode()}-----用户自定义'); console.log('-----${dataview.getOpenMode()}-----用户自定义');
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册