From 198258fdce64b2a6a5b44fa1f655e711fc1de4ea Mon Sep 17 00:00:00 2001 From: "Mr.sun" <2290907227@qq.com> Date: Tue, 26 Mar 2024 15:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=A6=81=E7=94=A8=20?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E4=B8=8B=E5=8F=91=E5=8F=96=E6=B6=88=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/config.js | 2 +- src/views/taskManagement/index.vue | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/views/config.js b/src/views/config.js index 7aacc7c..89292da 100644 --- a/src/views/config.js +++ b/src/views/config.js @@ -239,7 +239,7 @@ var arrRe=[ rodeYLength: 100, // 通道 standardZLength: 75, // 点位标准高度,用于控制占位, 二维暂时用不到 leftOffset: 500, // 整体向右偏移量 - topOffset: 2200, // 整体向下偏移量0 + topOffset: 2100, // 整体向下偏移量0 // leftOffsetCell: -9, // 整体向右偏移单元格个数 // topOffsetCell: -8, // 整体向下偏移单元格个数 leftOffsetCell: 0, // 整体向右偏移单元格个数 diff --git a/src/views/taskManagement/index.vue b/src/views/taskManagement/index.vue index 6fc3a72..ffb4cbc 100644 --- a/src/views/taskManagement/index.vue +++ b/src/views/taskManagement/index.vue @@ -393,11 +393,21 @@ export default { buttons: [ { name: '重新下发', - event: 'handleUpdate' + event: 'handleUpdate', + disable(row, prop) { + if (row.taskStatus == '2') { + return true + } + } }, { name: '取消任务', - event: 'handleDelete' + event: 'handleDelete', + disable(row, prop) { + if (row.taskStatus == '2') { + return true + } + } } ] }