|
|
@ -12,25 +12,32 @@ import { ColumnProps } from "ant-design-vue/lib/table/interface"; |
|
|
|
export const columns: ColumnProps[] = [ |
|
|
|
export const columns: ColumnProps[] = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '参数名称', |
|
|
|
title: '参数名称', |
|
|
|
dataIndex: 'name' |
|
|
|
align: 'center', |
|
|
|
|
|
|
|
dataIndex: 'name', |
|
|
|
|
|
|
|
width: 200 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '参数键名', |
|
|
|
title: '参数键名', |
|
|
|
|
|
|
|
align: 'center', |
|
|
|
dataIndex: 'key' |
|
|
|
dataIndex: 'key' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '参数键值', |
|
|
|
title: '参数键值', |
|
|
|
|
|
|
|
align: 'center', |
|
|
|
dataIndex: 'value' |
|
|
|
dataIndex: 'value' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '系统内置', |
|
|
|
title: '系统内置', |
|
|
|
|
|
|
|
align: 'center', |
|
|
|
dataIndex: 'isSys', |
|
|
|
dataIndex: 'isSys', |
|
|
|
|
|
|
|
width: 130, |
|
|
|
customRender: ({record}) => { |
|
|
|
customRender: ({record}) => { |
|
|
|
return record.isSys == '0' ? h(Tag, { color: 'success' }, '是') : h(Tag, { color: 'red' }, '否'); |
|
|
|
return record.isSys == '0' ? h(Tag, { color: 'success' }, '是') : h(Tag, { color: 'red' }, '否'); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '备注', |
|
|
|
title: '备注', |
|
|
|
|
|
|
|
align: 'center', |
|
|
|
dataIndex: 'remarks', |
|
|
|
dataIndex: 'remarks', |
|
|
|
customRender: ({record}) => { |
|
|
|
customRender: ({record}) => { |
|
|
|
return record.remarks || h(Tag, {color: 'red'},'暂无数据'); |
|
|
|
return record.remarks || h(Tag, {color: 'red'},'暂无数据'); |
|
|
@ -38,6 +45,7 @@ export const columns: ColumnProps[] = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '创建时间', |
|
|
|
title: '创建时间', |
|
|
|
|
|
|
|
align: 'center', |
|
|
|
dataIndex: 'createTime' |
|
|
|
dataIndex: 'createTime' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|