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

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

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