Browse Source

👣 提供ant原生表格组件模板基本完成

master
wangxiang 3 years ago
parent
commit
a205c0755a
  1. 10
      kicc-ui/src/views/system/config/config.data.ts

10
kicc-ui/src/views/system/config/config.data.ts

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

Loading…
Cancel
Save