main
Dayu 11 months ago
parent 1db45a0c66
commit ac47b484e9
  1. 9
      src/views/inspection/inspectiontasks.vue

@ -563,8 +563,12 @@
return; return;
} }
this.stopBox = true; this.stopBox = true;
this.$refs.stopForm.resetForm();
}, },
submitStop(){ submitStop(){
this.$refs.stopForm.validate((valid, done, msg) => {
if (valid) {
done()
this.$confirm("是否将选择巡检任务停止?", { this.$confirm("是否将选择巡检任务停止?", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -574,7 +578,7 @@
return stop(this.ids, this.stopForm.cancelReason); return stop(this.ids, this.stopForm.cancelReason);
}) })
.then(() => { .then(() => {
this.stopForm.cancelReason = ''; this.$refs.stopForm.resetForm();
this.stopBox = false; this.stopBox = false;
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
@ -583,6 +587,9 @@
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}
})
}, },
handleExport() { handleExport() {
this.$confirm("是否导出数据?", "提示", { this.$confirm("是否导出数据?", "提示", {

Loading…
Cancel
Save