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

快速分组代码表补充data属性和子项

上级 f1174cb0
...@@ -15,6 +15,16 @@ TARGET=PSSYSAPP ...@@ -15,6 +15,16 @@ TARGET=PSSYSAPP
"id": "${codeitem.getValue()?j_string}", "id": "${codeitem.getValue()?j_string}",
"label": "${codeitem.getText()?j_string}", "label": "${codeitem.getText()?j_string}",
"text": "${codeitem.getText()?j_string}", "text": "${codeitem.getText()?j_string}",
"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": "${subItem.getValue()?j_string}"
}
</#list>
]
</#if>,
<#comment>判断是否为数值代码项</#comment> <#comment>判断是否为数值代码项</#comment>
<#if codelist.isCodeItemValueNumber?? && codelist.isCodeItemValueNumber()> <#if codelist.isCodeItemValueNumber?? && codelist.isCodeItemValueNumber()>
"value": ${codeitem.getValue()?j_string}, "value": ${codeitem.getValue()?j_string},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册