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

update 宏文件调整 字符串=>对象

上级 48df5d5c
......@@ -5,8 +5,8 @@
:context="context"
:viewparams="viewparams"
:value="data.${editor.name}"
:navigateContext =<@getNavigateContext editor />
:navigateParam =<@getNavigateParams editor />
:navigateContext ='<@getNavigateContext editor />'
:navigateParam ='<@getNavigateParams editor />'
@change="($event)=>this.data.${editor.name} = $event"
:itemParam="<#if item.getEditorParam('PARENTDATA','') != ''>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>" <#if editor.getPSCodeList()??><#assign codelist=editor.getPSCodeList()>
:isCache="false"
......
......@@ -13,8 +13,8 @@
textSeparator="${codelist.getTextSeparator()}"</#if></#if>
:value="data.${editor.name}"
@change="($event)=>this.data.${editor.name} = $event"
:navigateContext =<@getNavigateContext editor />
:navigateParam =<@getNavigateParams editor />
:navigateContext ='<@getNavigateContext editor />'
:navigateParam ='<@getNavigateParams editor />'
type="${codelist.getCodeListType()?lower_case}"
tag="${codelist.codeName}"</#if>
<#if editor.getPlaceHolder()??>
......
......@@ -3,8 +3,8 @@
<#if editor.getPickupPSAppView()??>
<app-mob-mpicker
:data="data"
:navigateContext =<@getNavigateContext editor />
:navigateParam =<@getNavigateParams editor />
:navigateContext ='<@getNavigateContext editor />'
:navigateParam ='<@getNavigateParams editor />'
:disabled="detailsModel.${editor.name}.disabled"
:value="data.${editor.name}"
name="${editor.name}"
......
......@@ -7,8 +7,8 @@
:data="data"
:context="context"
:viewparams="viewparams"
:navigateContext =<@getNavigateContext editor />
:navigateParam =<@getNavigateParams editor />
:navigateContext ='<@getNavigateContext editor />'
:navigateParam ='<@getNavigateParams editor />'
:itemParam=<@getItemParams editor />
:disabled="detailsModel.${editor.name}.disabled"
name='${editor.name}'
......
......@@ -4,8 +4,8 @@
:formState="formState"
:data="data"
:context="context"
:navigateContext =<@getNavigateContext editor />
:navigateParam =<@getNavigateParams editor />
:navigateContext ='<@getNavigateContext editor />'
:navigateParam ='<@getNavigateParams editor />'
:viewparams="viewparams"
:itemParam=<@getItemParams editor />
:disabled="detailsModel.${editor.name}.disabled"
......
<#ibizinclude>../../@MACRO/View.ftl</#ibizinclude>
<#ibizinclude>../../../@NAVPARAMS/FUNC/PUBLIC.vue.ftl</#ibizinclude>
<#if item.getPSAppView()??>
/**
......@@ -12,7 +13,8 @@ protected click${item.codeName}(item: any = {}) {
<#if dataview.isRedirectView()>
this.$notify({ type: 'warning', message: '重定向视图暂不支持应用功能打开' });
<#else>
let params: any = {};
let params: any = <@getNavigateParams editor />;
let _context: any = <@getItemParams editor />;
<#if item.getOpenViewParam?? && item.getOpenViewParam()??>
Object.assign(params, ${item.getOpenViewParam()});
</#if>
......
<#-- BEGIN:获取导航上下文 -->
<#macro getNavigateContext currentItem>
'{ <#t>
{ <#t>
<#if currentItem.getPSNavigateContexts?? && currentItem.getPSNavigateContexts()??>
<#list currentItem.getPSNavigateContexts() as navContext>
${navContext.getKey()}:<#if navContext.isRawValue()?? && navContext.isRawValue() == true>"${navContext.getValue()}"<#else>"%${navContext.getValue()}%"</#if><#if navContext_has_next>,</#if> <#t>
</#list>
</#if>
}' <#t>
} <#t>
</#macro>
<#-- END:获取导航上下文 -->
<#-- BEGIN:获取导航参数 -->
<#macro getNavigateParams currentItem>
'{ <#t>
{ <#t>
<#if currentItem.getPSNavigateParams?? && currentItem.getPSNavigateParams()??>
<#list currentItem.getPSNavigateParams() as navParam >
${navParam.getKey()}:<#if navParam.isRawValue()?? && navParam.isRawValue() == true>"${navParam.getValue()}"<#else>"%${navParam.getValue()}%"</#if><#if navParam_has_next>,</#if> <#t>
</#list>
</#if>
}' <#t>
} <#t>
</#macro>
<#-- END:获取导航参数 -->
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册