From 4167627613e635e588ce4d7b7dc8720ce64ec520 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 27 Oct 2022 15:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86=E5=8F=96?= =?UTF-8?q?=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/proj/TaskManage.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/proj/TaskManage.vue b/src/pages/proj/TaskManage.vue index 02fc3a1..4086ea4 100644 --- a/src/pages/proj/TaskManage.vue +++ b/src/pages/proj/TaskManage.vue @@ -38,6 +38,7 @@
+
@@ -92,26 +93,25 @@ export default { let res = await taskOperation(this.pkId, type) if (res.code === '1') { this.toast('操作成功') - this.disabled = false this.pkId = '' this.btnred = false this.dataList = [] this.queryTask() } else { this.Dialog(res.desc) - this.disabled = false } + this.disabled = false } catch (err) { - console.log(err) + this.disabled = false } }, toSure (type) { - if (this.pkId) { - this.disabled = true - this.taskOperation(type) - } else { - // this.toast('请选择') + this.disabled = true + if (!this.pkId) { + this.disabled = false + return } + this.taskOperation(type) }, toCheck (e) { this.pkId = this.pkId === e.task_uuid ? '' : e.task_uuid