From 08b33132da6274ad832f5c01c00acb058836c145 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 27 Sep 2024 17:03:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BC=98=E5=8C=96=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task-management/all-work-order/index.vue | 18 ++++++++++++++---- .../historical-work-order/index.vue | 2 +- .../pending-work-order/index.vue | 4 ++-- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/views/task-management/all-work-order/index.vue b/src/views/task-management/all-work-order/index.vue index e1fbe0d..367edee 100644 --- a/src/views/task-management/all-work-order/index.vue +++ b/src/views/task-management/all-work-order/index.vue @@ -85,11 +85,14 @@ const searchConfig = reactive([ prop: 'createTime', props: { placeholder: '请选择', + type: 'datetime', clearable: true, - checkStrictly: true + checkStrictly: true, + valueFormat: 'YYYY-MM-DD HH:mm:ss', }, component: 'el-date-picker', - }, { + }, + { label: '处理时间', prop: 'processedTime', props: { @@ -167,7 +170,14 @@ const tableConfig = reactive({ { prop: 'operationUser', label: '处理人', - align: 'center' + align: 'center', + currentRender: ({ row, index }) => { + if (row.operationUser) { + return row.operationUser + } else { + return '--' + } + } }, { @@ -211,7 +221,7 @@ const tableConfig = reactive({ let btn = [] btn.push({ label: '详情', prem: auths.detail, func: () => handleDetail(row), type: 'primary' }) btn.push({ label: '关单', prem: auths.detail, func: () => handleClose(row), type: 'primary' }) - btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'primary' }) + btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'danger'}) return (