fix:修复数据表格列没有正确使用码值
This commit is contained in:
parent
85c8a9fffa
commit
9de4a29f67
14
docs/template/index.vue.vm
vendored
14
docs/template/index.vue.vm
vendored
@ -9,6 +9,7 @@ import { $t } from '@/locales';
|
||||
import ButtonIcon from '@/components/custom/button-icon.vue';
|
||||
import ${BusinessName}OperateDrawer from './modules/${business__name}-operate-drawer.vue';
|
||||
import ${BusinessName}Search from './modules/${business__name}-search.vue';
|
||||
import DictTag from '@/components/custom/dict-tag.vue';
|
||||
|
||||
defineOptions({
|
||||
name: '${BusinessName}List'
|
||||
@ -56,18 +57,31 @@ const {
|
||||
},
|
||||
#foreach ($column in $columns)
|
||||
#if($column.list)
|
||||
#if($column.htmlType == "select" && "" != $column.dictType)
|
||||
{
|
||||
key: '$column.javaField',
|
||||
title: '$column.columnComment',
|
||||
align: 'center',
|
||||
minWidth: 120,
|
||||
render(row) {
|
||||
return <DictTag size="small" value={row.$column.javaField} dictCode="$column.dictType" />;
|
||||
}
|
||||
},
|
||||
#else
|
||||
{
|
||||
key: '$column.javaField',
|
||||
title: '$column.columnComment',
|
||||
align: 'center',
|
||||
minWidth: 120
|
||||
},
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
{
|
||||
key: 'operate',
|
||||
title: $t('common.operate'),
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
width: 130,
|
||||
render: row => {
|
||||
const divider = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user