nursing_unit_vue/src/views/services/directivePackage/components/ConfigServiceDirective.data.ts

141 lines
2.8 KiB
TypeScript

import { BasicColumn } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
{
title: '分类标签',
align: 'center',
dataIndex: 'instructionTagId_dictText',
width: 120,
},
{
title: '服务类别',
align: 'center',
dataIndex: 'categoryId_dictText',
},
{
title: '服务类型',
align: 'center',
dataIndex: 'typeId_dictText',
},
{
title: '服务指令名称',
align: 'center',
dataIndex: 'directiveName',
},
// {
// 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 '-';
// }
// },
// },
{
title: '周期类型',
align: 'center',
dataIndex: 'cycleType_dictText',
width: 90,
},
{
title: '服务时长',
align: 'center',
dataIndex: 'serviceDuration',
width: 90,
},
];
export const selectedColumns: BasicColumn[] = [
{
title: '序号',
dataIndex: 'index',
key: 'index',
width: 60,
align: 'center',
},
{
title: '分类标签',
align: 'center',
dataIndex: 'instructionTagName',
width: 120,
},
{
title: '服务类别',
align: 'center',
dataIndex: 'categoryName',
},
{
title: '服务类型',
align: 'center',
dataIndex: 'typeName',
},
{
title: '服务指令名称',
align: 'center',
dataIndex: 'directiveName',
},
// {
// 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 '-';
// }
// },
// },
{
title: '周期类型',
align: 'center',
dataIndex: 'cycleType',
width: 90,
},
{
title: '服务时长',
align: 'center',
dataIndex: 'serviceDuration',
width: 90,
},
{
title: '操作',
key: 'action',
slots: { customRender: 'action' },
fixed: 'right', // 如果需要固定在右侧
align: 'center',
width: 80,
},
];