import { h } from 'vue'; import { Tag } from 'ant-design-vue'; export const columns = [ { title: 'ID', dataIndex: 'id', width: 100, }, { title: '参数名称', dataIndex: 'name', }, { title: '参数编码', dataIndex: 'code', }, { title: '参数值', dataIndex: 'value', }, { title: '参数类型', dataIndex: 'type', customRender({ record }) { return h( Tag, { color: record.type ==0 ? 'processing' : 'warning', }, { default: () => (record.type ==0 ? '系统' : '业务'), }, ); }, }, { title: '参数状态', dataIndex: 'status', customRender({ record }) { return h( Tag, { color: record.status ==1 ? 'success' : 'error', }, { default: () => (record.status ==1 ? '正常' : '禁用'), }, ); }, }, { title: '排序', dataIndex: 'sort', }, { title: '备注', dataIndex: 'note', }, { title: '创建人', dataIndex: 'createUser', }, { title: '创建时间', dataIndex: 'createTime', width: 180, }, { title: '操作', fixed:'right', dataIndex: 'action', key: 'action', width: 200, }, ];