2025-03-26 15:36:35 +08:00
|
|
|
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',
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-04-28 16:08:53 +08:00
|
|
|
title: '体型标签',
|
2025-03-26 15:36:35 +08:00
|
|
|
align: 'center',
|
2025-04-28 16:08:53 +08:00
|
|
|
dataIndex: 'bodyTagList',
|
|
|
|
|
ellipsis: false,
|
|
|
|
|
format(text, record, index) {
|
|
|
|
|
if (!!text) {
|
|
|
|
|
return text.map((item) => item.tagName).join('、');
|
|
|
|
|
} else {
|
|
|
|
|
return '-';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '情绪标签',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'emotionTagList',
|
2025-03-26 15:36:35 +08:00
|
|
|
ellipsis: false,
|
|
|
|
|
format(text, record, index) {
|
2025-03-28 16:44:40 +08:00
|
|
|
if (!!text) {
|
|
|
|
|
return text.map((item) => item.tagName).join('、');
|
|
|
|
|
} else {
|
|
|
|
|
return '-';
|
2025-03-26 15:36:35 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '周期类型',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'cycleType_dictText',
|
|
|
|
|
},
|
2025-03-28 16:44:40 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const selectedColumns: BasicColumn[] = [
|
2025-05-15 16:48:57 +08:00
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
|
dataIndex: 'index',
|
|
|
|
|
key: 'index',
|
|
|
|
|
width: 60,
|
|
|
|
|
align: 'center',
|
|
|
|
|
},
|
2025-03-28 16:44:40 +08:00
|
|
|
{
|
|
|
|
|
title: '分类标签',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'instructionTagId',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务类别',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'categoryName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务类型',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'typeName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务指令名称',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'directiveName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '指令标签',
|
|
|
|
|
align: 'center',
|
2025-04-28 16:08:53 +08:00
|
|
|
dataIndex: 'bodyTagList',
|
|
|
|
|
ellipsis: false,
|
|
|
|
|
format(text, record, index) {
|
|
|
|
|
if (!!text) {
|
|
|
|
|
return text.map((item) => item.tagName).join('、');
|
|
|
|
|
} else {
|
|
|
|
|
return '-';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '指令标签',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'emotionTagList',
|
2025-03-28 16:44:40 +08:00
|
|
|
ellipsis: false,
|
|
|
|
|
format(text, record, index) {
|
|
|
|
|
if (!!text) {
|
|
|
|
|
return text.map((item) => item.tagName).join('、');
|
|
|
|
|
} else {
|
|
|
|
|
return '-';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-03-26 15:36:35 +08:00
|
|
|
{
|
2025-03-28 16:44:40 +08:00
|
|
|
title: '周期类型',
|
2025-03-26 15:36:35 +08:00
|
|
|
align: 'center',
|
2025-03-28 16:44:40 +08:00
|
|
|
dataIndex: 'cycleType',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
|
key: 'action',
|
|
|
|
|
slots: { customRender: 'action' },
|
|
|
|
|
fixed: 'right', // 如果需要固定在右侧
|
2025-04-28 16:08:53 +08:00
|
|
|
align: 'center',
|
|
|
|
|
width: 100,
|
2025-03-26 15:36:35 +08:00
|
|
|
},
|
|
|
|
|
];
|