import { BasicColumn } from '/@/components/Table'; import dayjs from 'dayjs'; import { render } from '/@/utils/common/renderUtils'; export const columns1: BasicColumn[] = [ { title: '姓名', dataIndex: 'doctorName', }, { title: '性别', dataIndex: 'sex', customRender: ({ text }) => { return render.renderDict(text, 'sex2'); }, }, { title: '年龄', dataIndex: 'age', }, { title: '科室', dataIndex: 'departmentName', }, { title: '职称', dataIndex: 'doctorJob_dictText', }, { title: `当年服务人次(${dayjs().format('YYYY')})`, dataIndex: 'thisYearSessionSum', }, { title: '累计服务人次', dataIndex: 'allSessionSum', }, ]; export const columns2: BasicColumn[] = [ { title: '单位', dataIndex: 'secondDeptName', }, { title: '部门', dataIndex: 'thirdDeptName', }, { title: '姓名', dataIndex: 'realName', width: 100, }, { title: '工号', dataIndex: 'workNo', width: 100, }, { title: '性别', dataIndex: 'sex', customRender: ({ text }) => { return render.renderDict(text, 'sex2'); }, width: 80, }, { title: '年龄', dataIndex: 'age', width: 80, }, { title: '最近咨询时间', dataIndex: 'lastSessionDate', }, { title: '累计咨询次数', dataIndex: 'sessionCount', }, ];