2025-03-26 15:36:35 +08:00
|
|
|
import { BasicColumn } from '/@/components/Table';
|
|
|
|
|
//列表数据
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
|
|
{
|
|
|
|
|
title: '分类标签',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'instructionTagId_dictText',
|
2025-09-04 16:22:31 +08:00
|
|
|
width: 120,
|
2025-03-26 15:36:35 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务类别',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'categoryId_dictText',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务类型',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'typeId_dictText',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务指令名称',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'directiveName',
|
|
|
|
|
},
|
2025-09-04 16:22:31 +08:00
|
|
|
// {
|
|
|
|
|
// title: '体型标签',
|
|
|
|
|
// align: 'center',
|
|
|
|
|
// dataIndex: 'bodyTagList',
|
|
|
|
|
// ellipsis: false,
|
|
|
|
|
// format(text, record, index) {
|
|
|
|
|
// if (!!text) {
|
|
|
|
|
// return text.map((item) => item.tagName).join('、');
|
|
|
|
|
// } else {
|
|
|
|
|
// return '-';
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title: '情绪标签',
|
|
|
|
|
// align: 'center',
|
|
|
|
|
// dataIndex: 'emotionTagList',
|
|
|
|
|
// 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-09-04 16:22:31 +08:00
|
|
|
title: '周期类型',
|
2025-04-28 16:08:53 +08:00
|
|
|
align: 'center',
|
2025-09-04 16:22:31 +08:00
|
|
|
dataIndex: 'cycleType_dictText',
|
|
|
|
|
width: 90,
|
2025-03-26 15:36:35 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-09-04 16:22:31 +08:00
|
|
|
title: '服务时长',
|
2025-03-26 15:36:35 +08:00
|
|
|
align: 'center',
|
2025-09-04 16:22:31 +08:00
|
|
|
dataIndex: 'serviceDuration',
|
|
|
|
|
width: 90,
|
2025-03-26 15:36:35 +08:00
|
|
|
},
|
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',
|
2025-07-15 16:30:33 +08:00
|
|
|
dataIndex: 'instructionTagName',
|
2025-09-04 16:22:31 +08:00
|
|
|
width: 120,
|
2025-03-28 16:44:40 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务类别',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'categoryName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务类型',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'typeName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务指令名称',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'directiveName',
|
|
|
|
|
},
|
2025-09-04 16:22:31 +08:00
|
|
|
// {
|
|
|
|
|
// title: '指令标签',
|
|
|
|
|
// align: 'center',
|
|
|
|
|
// dataIndex: 'bodyTagList',
|
|
|
|
|
// ellipsis: false,
|
|
|
|
|
// format(text, record, index) {
|
|
|
|
|
// if (!!text) {
|
|
|
|
|
// return text.map((item) => item.tagName).join('、');
|
|
|
|
|
// } else {
|
|
|
|
|
// return '-';
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// title: '指令标签',
|
|
|
|
|
// align: 'center',
|
|
|
|
|
// dataIndex: 'emotionTagList',
|
|
|
|
|
// ellipsis: false,
|
|
|
|
|
// format(text, record, index) {
|
|
|
|
|
// if (!!text) {
|
|
|
|
|
// return text.map((item) => item.tagName).join('、');
|
|
|
|
|
// } else {
|
|
|
|
|
// return '-';
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
2025-03-28 16:44:40 +08:00
|
|
|
{
|
2025-09-04 16:22:31 +08:00
|
|
|
title: '周期类型',
|
2025-04-28 16:08:53 +08:00
|
|
|
align: 'center',
|
2025-09-04 16:22:31 +08:00
|
|
|
dataIndex: 'cycleType',
|
|
|
|
|
width: 90,
|
2025-03-28 16:44:40 +08:00
|
|
|
},
|
2025-03-26 15:36:35 +08:00
|
|
|
{
|
2025-09-04 16:22:31 +08:00
|
|
|
title: '服务时长',
|
2025-03-26 15:36:35 +08:00
|
|
|
align: 'center',
|
2025-09-04 16:22:31 +08:00
|
|
|
dataIndex: 'serviceDuration',
|
|
|
|
|
width: 90,
|
2025-03-28 16:44:40 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
|
key: 'action',
|
|
|
|
|
slots: { customRender: 'action' },
|
|
|
|
|
fixed: 'right', // 如果需要固定在右侧
|
2025-04-28 16:08:53 +08:00
|
|
|
align: 'center',
|
2025-09-04 16:22:31 +08:00
|
|
|
width: 80,
|
2025-03-26 15:36:35 +08:00
|
|
|
},
|
|
|
|
|
];
|