代码生成器,树列表固定操作列,解决列表分类未翻译问题

pull/2473/head
zhangdaiscott 2021-03-24 15:55:59 +08:00
parent 88646bea1b
commit b25fb55d10
1 changed files with 9 additions and 0 deletions

View File

@ -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' },
} }