92 lines
1.8 KiB
TypeScript
92 lines
1.8 KiB
TypeScript
import { BasicColumn } from '/@/components/Table';
|
|
//列表数据
|
|
export const columns: BasicColumn[] = [
|
|
{
|
|
title: '分类标签',
|
|
align: 'center',
|
|
dataIndex: 'instructionTagId_dictText',
|
|
},
|
|
{
|
|
title: '服务类别',
|
|
align: 'center',
|
|
dataIndex: 'categoryId_dictText',
|
|
},
|
|
{
|
|
title: '服务类型',
|
|
align: 'center',
|
|
dataIndex: 'typeId_dictText',
|
|
},
|
|
{
|
|
title: '服务指令名称',
|
|
align: 'center',
|
|
dataIndex: 'directiveName',
|
|
},
|
|
{
|
|
title: '指令标签',
|
|
align: 'center',
|
|
dataIndex: 'tagList',
|
|
ellipsis: false,
|
|
format(text, record, index) {
|
|
if (!!text) {
|
|
return text.map((item) => item.tagName).join('、');
|
|
} else {
|
|
return '-';
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '周期类型',
|
|
align: 'center',
|
|
dataIndex: 'cycleType_dictText',
|
|
},
|
|
];
|
|
|
|
export const selectedColumns: BasicColumn[] = [
|
|
{
|
|
title: '分类标签',
|
|
align: 'center',
|
|
dataIndex: 'instructionTagId',
|
|
},
|
|
{
|
|
title: '服务类别',
|
|
align: 'center',
|
|
dataIndex: 'categoryName',
|
|
},
|
|
{
|
|
title: '服务类型',
|
|
align: 'center',
|
|
dataIndex: 'typeName',
|
|
},
|
|
{
|
|
title: '服务指令名称',
|
|
align: 'center',
|
|
dataIndex: 'directiveName',
|
|
},
|
|
{
|
|
title: '指令标签',
|
|
align: 'center',
|
|
dataIndex: 'tagList',
|
|
ellipsis: false,
|
|
format(text, record, index) {
|
|
if (!!text) {
|
|
return text.map((item) => item.tagName).join('、');
|
|
} else {
|
|
return '-';
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '周期类型',
|
|
align: 'center',
|
|
dataIndex: 'cycleType',
|
|
},
|
|
{
|
|
title: '操作',
|
|
key: 'action',
|
|
slots: { customRender: 'action' },
|
|
fixed: 'right', // 如果需要固定在右侧
|
|
align:'center',
|
|
width:100
|
|
},
|
|
];
|