|
|
|
@ -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("是否导出数据?", "提示", { |
|
|
|
|