康来智慧冷链-后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
949 B

/**
* @program: kicc-ui
* @description: 配置参数模块动态渲染配置
* @author: entfrm开发团队-王翔
* @create: 2022/4/21
*/
import { h } from 'vue';
import { Tag } from 'ant-design-vue';
import { ColumnProps } from "ant-design-vue/lib/table/interface";
/** 表格列配置 */
export const columns: ColumnProps[] = [
{
title: '参数名称',
dataIndex: 'name'
},
{
title: '参数键名',
dataIndex: 'key'
},
{
title: '参数键值',
dataIndex: 'value'
},
{
title: '系统内置',
dataIndex: 'isSys',
customRender: ({record}) => {
return record.isSys == '0' ? h(Tag, { color: 'success' }, '是') : h(Tag, { color: 'red' }, '否');
}
},
{
title: '备注',
dataIndex: 'remarks',
customRender: ({record}) => {
return record.remarks || h(Tag, {color: 'red'},'暂无数据');
}
},
{
title: '创建时间',
dataIndex: 'createTime'
}
];