|
|
@@ -997,9 +997,7 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
publishPlan(row.id, 1);
|
|
|
- setTimeout(() => {
|
|
|
- this.getList()
|
|
|
- }, 100)
|
|
|
+ this.delayFlush(1000)
|
|
|
});
|
|
|
} else {
|
|
|
if (row.planStatus == 0) {
|
|
|
@@ -1009,9 +1007,7 @@ export default {
|
|
|
(state) => {
|
|
|
if (state == 0 || state == 1) {
|
|
|
publishPlan(row.id, state);
|
|
|
- setTimeout(() => {
|
|
|
- this.getList()
|
|
|
- }, 100)
|
|
|
+ this.delayFlush(1000)
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -1028,13 +1024,17 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
publishPlan(row.id, 0);
|
|
|
- setTimeout(() => {
|
|
|
- this.getList()
|
|
|
- }, 100)
|
|
|
+ this.delayFlush(1000)
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ delayFlush(time) {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getList()
|
|
|
+ }, time)
|
|
|
+ },
|
|
|
getMsgStr(row, type) {
|
|
|
let str = "是否确认" + type + "该计划?";
|
|
|
if (row.standard == 1) {
|
|
|
@@ -1049,8 +1049,8 @@ export default {
|
|
|
if (row.planCycle == 0) {
|
|
|
if (row.done == 1) {
|
|
|
msg = '因存在已完成任务,无周期任务不允许撤回,如需删除下发任务请点击"删除"';
|
|
|
- this.$alert(msg,'系统提示',{
|
|
|
- confirmButtonText:"确认"
|
|
|
+ this.$alert(msg, '系统提示', {
|
|
|
+ confirmButtonText: "确认"
|
|
|
})
|
|
|
return
|
|
|
} else {
|