From 26b45c5c02d25ac2d4501140eaefb08def150ae4 Mon Sep 17 00:00:00 2001 From: ye1023 <12588209+ye1023@user.noreply.gitee.com> Date: Mon, 18 May 2026 15:32:45 +0800 Subject: [PATCH] =?UTF-8?q?yxk-20260518-=E5=BE=85=E5=8A=9E=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=A2=9E=E5=8A=A0=E6=88=AA=E8=87=B3=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91=EF=BC=8C=E9=80=BE=E6=9C=9F?= =?UTF-8?q?=E5=92=8C=E5=8D=B3=E5=B0=86=E5=88=B0=E6=9C=9F=E7=9A=84=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=88=86=E5=88=AB=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../myHandleTask/task.handle.data.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/super/bpm/process/personalOffice/myHandleTask/task.handle.data.ts b/src/views/super/bpm/process/personalOffice/myHandleTask/task.handle.data.ts index d2fe3b1..655213a 100644 --- a/src/views/super/bpm/process/personalOffice/myHandleTask/task.handle.data.ts +++ b/src/views/super/bpm/process/personalOffice/myHandleTask/task.handle.data.ts @@ -1,4 +1,6 @@ import { BasicColumn, FormSchema } from '/@/components/Table'; +import { Tag } from 'ant-design-vue'; +import { h } from 'vue'; export enum TaskType { RUN = 'run', @@ -42,8 +44,21 @@ export const columns: BasicColumn[] = [ { title: '事项截止时间', align: 'center', - width: 170, + width: 120, dataIndex: 'deadline', + customRender: ({ text, record }) => { + const value = !text ? '' : text.length > 10 ? text.substr(0, 10) : text; + if (!value) { + return ''; + } + if (record.deadlineOverdue) { + return h(Tag, { color: 'error' }, () => (record.deadlineWarnText ? `${value} ${record.deadlineWarnText}` : value)); + } + if (record.deadlineSoon) { + return h(Tag, { color: 'warning' }, () => (record.deadlineWarnText ? `${value} ${record.deadlineWarnText}` : value)); + } + return value; + }, }, { title: '流程实例',