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