From 9b5a01419445aac3880cfadf4175e14ab39442f3 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Tue, 10 Sep 2024 14:03:34 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E5=B7=A5=E5=8D=95=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=8F=8A=E7=94=B5=E8=AF=9D=E6=8B=A8=E6=89=93=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task-management/all-work-order/index.vue | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/views/task-management/all-work-order/index.vue b/src/views/task-management/all-work-order/index.vue index a906a32..d0dc3a6 100644 --- a/src/views/task-management/all-work-order/index.vue +++ b/src/views/task-management/all-work-order/index.vue @@ -7,12 +7,17 @@ const router = useRouter() const tableIns = ref() +//todo 外部模拟数据, 接口一出来, 直接在下方 tableConfig 的api处填写就行 const mockData=ref([ { workOrderNumber:1211, + state:0, + callState:0 }, { workOrderNumber:232, + state:1, + callState:1 }, ]) const auths = reactive({ @@ -44,6 +49,32 @@ const tableConfig = reactive({ label: '工单号', align: 'center' }, + { + prop: 'state', + label: '工单状态', + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } + }, + { + prop: 'callState', + label: '电话拨打状态', + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.callState !== null) { + return () + } else { + return '--' + } + } + }, { prop: 'oper', label: '操作',