From 4f1ddcc0320305ef081c44f7bc397d046ecdff58 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Tue, 16 Apr 2024 14:15:20 +0800 Subject: [PATCH] =?UTF-8?q?task=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/modules/taskmanage/TaskLists.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/modules/taskmanage/TaskLists.vue b/src/pages/modules/taskmanage/TaskLists.vue index 3b25bc3..2fd0623 100644 --- a/src/pages/modules/taskmanage/TaskLists.vue +++ b/src/pages/modules/taskmanage/TaskLists.vue @@ -162,6 +162,11 @@ export default { }, toDel (index) { if (this.pkId) { + if (this.selectObj.task_status === '01') { + let tipText = this.$i18n.locale === 'en-us' ? 'The Task Is Running And Cannot Be Canceled' : '任务正在运行,不能取消' + this.toast(tipText) + return + } this.dataList.splice(index, 1) this.pkId = '' this.up = false