提交 a8516a16 编写于 作者: Mosher's avatar Mosher

增加表格数据链接导航参数 --- fix3

上级 12922aa5
...@@ -29,6 +29,30 @@ ...@@ -29,6 +29,30 @@
</#macro> </#macro>
<#-- END:获取视图本身路由参数 --> <#-- END:获取视图本身路由参数 -->
<#-- BEGIN:获取导航上下文 -->
<#macro getNavigateContext currentItem>
'{ <#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>
</#macro>
<#-- END:获取导航上下文 -->
<#-- BEGIN:获取导航参数 -->
<#macro getNavigateParams currentItem>
'{ <#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>
</#macro>
<#-- END:获取导航参数 -->
<#-- BEGIN:插入空格 --> <#-- BEGIN:插入空格 -->
<#macro insertBlank num> <#macro insertBlank num>
<#assign blank_space = " " /> <#assign blank_space = " " />
...@@ -173,22 +197,14 @@ ...@@ -173,22 +197,14 @@
<#list ctrl.getPSDEGridEditItems() as editItem> <#list ctrl.getPSDEGridEditItems() as editItem>
<#if editItem.getRefLinkPSAppView?? && editItem.getRefLinkPSAppView()??> <#if editItem.getRefLinkPSAppView?? && editItem.getRefLinkPSAppView()??>
<#if editItem.getPSEditor?? && editItem.getPSEditor()?? && editItem.getPSEditor().getPSNavigateContexts??> <#if editItem.getPSEditor?? && editItem.getPSEditor()?? && editItem.getPSEditor().getPSNavigateContexts??>
<#if editItem.getPSEditor().getPSNavigateContexts() == null> :localContext =<@getNavigateContext editItem />
:localContext="{ }"
<#else>
:localContext="${editItem.getPSEditor().getPSNavigateContexts()}"
</#if>
</#if> </#if>
<#if editItem.getPSEditor?? && editItem.getPSEditor()?? && editItem.getPSEditor().getPSNavigateParams??> <#if editItem.getPSEditor?? && editItem.getPSEditor()?? && editItem.getPSEditor().getPSNavigateParams??>
<#if editItem.getPSEditor().getPSNavigateParams() == null> :localParam =<@getNavigateParams editItem />
:localParam="{ }"
<#else>
:localParam="${editItem.getPSEditor().getPSNavigateParams()}"
</#if>
</#if> </#if>
</#if> </#if>
</#list> </#list>
</#if> valueitem="<#if item.getLinkValueItem()??>${item.getLinkValueItem()}</#if>"> </#if> valueitem="<#if item.getLinkValueItem()??>${item.getLinkValueItem()}</#if>"> -->
<#-- BEGIN:常规显示 --> <#-- BEGIN:常规显示 -->
<#if item.getPSDEGridEditItem()?? && item.getPSDEGridEditItem().getPSEditorType?? && item.getPSDEGridEditItem().getPSEditorType()??> <#if item.getPSDEGridEditItem()?? && item.getPSDEGridEditItem().getPSEditorType?? && item.getPSDEGridEditItem().getPSEditorType()??>
<app-span name='${item.name}' editorType="${item.getPSDEGridEditItem().getPSEditorType().getStandardPSEditorType()}" :value="row.${item.getName()?lower_case}"></app-span> <app-span name='${item.name}' editorType="${item.getPSDEGridEditItem().getPSEditorType().getStandardPSEditorType()}" :value="row.${item.getName()?lower_case}"></app-span>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册