diff --git a/client/src/views/ability/mQualityTask.vue b/client/src/views/ability/mQualityTask.vue index 8dd1f67..6e42f77 100644 --- a/client/src/views/ability/mQualityTask.vue +++ b/client/src/views/ability/mQualityTask.vue @@ -853,13 +853,36 @@ methods: { noChange(index){ + let that = this; if(index==='1'){//资质无新增 - qualiNoChange({qtask:this.qtask}).then(res=>{ - }) + that.$confirm("是否确定本月无新增资质?", "提示") + .then(async () => { + qualiNoChange({qtask:this.qtask}).then(res=>{ + if (res.code >= 200 && res.code < 400) { + that.getList(); + that.$message.success("成功"); + } + }) + }) + .catch((err) => { + console.error(err); + }); + }else{//能力无新增 - abilityNoChange({qtask:this.qtask}).then(res=>{ - }) + that.$confirm("是否确定本月无新增能力?", "提示") + .then(async () => { + abilityNoChange({qtask:this.qtask}).then(res=>{ + if (res.code >= 200 && res.code < 400) { + that.getList(); + that.$message.success("成功"); + } + }) + }) + .catch((err) => { + console.error(err); + }); } + }, getOptions() { getDictList({type__code: "field_type", is_used: true}).then((res) => { @@ -943,7 +966,7 @@ this.qtask = obj.qtask; this.qtaskName = obj.qtask_.name; this.buttonsShow = true; - this.listQuery.task = obj.qtask; + this.listQuery.qtask = obj.qtask; qactionMy(this.listQuery).then((res) => { this.recordList = res.data; })