mirror of https://github.com/jeecgboot/jeecg-boot
代码生成器,树列表固定操作列,解决列表分类未翻译问题
parent
88646bea1b
commit
b25fb55d10
|
@ -273,6 +273,14 @@
|
||||||
customRender: (text) => (!text ? "" : (text == ${po.dictField}[0] ? "是" : "否"))
|
customRender: (text) => (!text ? "" : (text == ${po.dictField}[0] ? "是" : "否"))
|
||||||
<#else>
|
<#else>
|
||||||
customRender: (text) => (!text ? "" : (text == "Y" ? "是" : "否"))
|
customRender: (text) => (!text ? "" : (text == "Y" ? "是" : "否"))
|
||||||
|
</#if>
|
||||||
|
<#elseif po.classType=='cat_tree'>
|
||||||
|
<#if list_need_category>
|
||||||
|
dataIndex: '${po.fieldName}',
|
||||||
|
customRender: (text) => (text ? filterMultiDictText(this.dictOptions['${po.fieldName}'], text) : '')
|
||||||
|
<#else>
|
||||||
|
dataIndex: '${po.fieldName}',
|
||||||
|
customRender: (text, record) => (text ? record['${po.dictText}'] : '')
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
dataIndex: '${po.fieldName}'
|
dataIndex: '${po.fieldName}'
|
||||||
|
@ -285,6 +293,7 @@
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
align:"center",
|
align:"center",
|
||||||
|
fixed:"right",
|
||||||
width:147,
|
width:147,
|
||||||
scopedSlots: { customRender: 'action' },
|
scopedSlots: { customRender: 'action' },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue