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

@ -563,26 +563,33 @@
return;
}
this.stopBox = true;
this.$refs.stopForm.resetForm();
},
submitStop(){
this.$confirm("是否将选择巡检任务停止?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$refs.stopForm.validate((valid, done, msg) => {
if (valid) {
done()
this.$confirm("是否将选择巡检任务停止?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return stop(this.ids, this.stopForm.cancelReason);
})
.then(() => {
this.$refs.stopForm.resetForm();
this.stopBox = false;
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
}
})
.then(() => {
return stop(this.ids, this.stopForm.cancelReason);
})
.then(() => {
this.stopForm.cancelReason = '';
this.stopBox = false;
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
this.$confirm("是否导出数据?", "提示", {

Loading…
Cancel
Save