提交 c6a4b150 编写于 作者: Neuromancer255's avatar Neuromancer255

快速分组代码表补充父项属性

上级 43cbbadd
......@@ -17,25 +17,15 @@ TARGET=PSSYSAPP
"text": "${codeitem.getText()?j_string}",
"default": ${codeitem.isDefault()?c},
"data": <#if codeitem.getData() !="">${codeitem.getData()}<#else>""</#if>,
<#if codeitem.getPSCodeItems?? && codeitem.getPSCodeItems()??>
"subItem": [
<#list codeitem.getPSCodeItems() as subItem>
<#if subItem_index gt 0>,</#if> {
"id": "${codeitem.getValue()?j_string}",
"label": "${codeitem.getText()?j_string}",
"text": "${codeitem.getText()?j_string}",
"data": <#if codeitem.getData() !="">${codeitem.getData()}<#else>""</#if>
}
</#list>
],
</#if>
<#comment>判断是否为数值代码项</#comment>
<#if codelist.isCodeItemValueNumber?? && codelist.isCodeItemValueNumber()>
"value": ${codeitem.getValue()?j_string},
"isValueNumber":true,
<#if codeitem.getParentCodeItem()??><#assign parentCodeItem = codeitem.getParentCodeItem() />"pvalue": ${parentCodeItem.getValue()?j_string},</#if>
<#else>
"value": "${codeitem.getValue()?j_string}",
"isValueNumber":false,
<#if codeitem.getParentCodeItem()??><#assign parentCodeItem = codeitem.getParentCodeItem() />"pvalue": "${parentCodeItem.getValue()?j_string}",</#if>
</#if>
<#if codeitem.getPSSysImage()??>
<#assign sysimage = codeitem.getPSSysImage()/>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册