Procházet zdrojové kódy

培训/演练:bug修改

jingyuanchao před 1 rokem
rodič
revize
d39e942652

+ 11 - 2
src/views/core/drill/plan/index.vue

@@ -907,15 +907,21 @@ export default {
           })
           .then(() => {
             publishPlan(row.id, 1);
+            setTimeout(() => {
+              this.getList()
+            }, 100)
           });
       } else {
         if (row.planStatus == 0) {
-          msg = "请选择从当前轮次或周期开始生成任务?";
+          msg = "请选择从当前轮次或周期开始生成任务?";
           this.$refs["DialogThreeState"].show(
             msg,
             (state) => {
               if (state == 0 || state == 1) {
                 publishPlan(row.id, state);
+                setTimeout(() => {
+                  this.getList()
+                }, 100)
               }
             },
             {
@@ -932,10 +938,13 @@ export default {
             })
             .then(() => {
               publishPlan(row.id, 0);
+              setTimeout(() => {
+                this.getList()
+              }, 100)
             });
         }
       }
-      this.getList();
+
     },
     //撤回计划
     handleRevocation(row) {

+ 11 - 1
src/views/core/edu/plan/index.vue

@@ -678,6 +678,7 @@ export default {
     },
     /** 查询教育培训计划列表 */
     getList() {
+      console.log("12312312312312")
       this.loading = true;
       listPlan(this.queryParams).then((response) => {
         this.planList = response.rows;
@@ -983,15 +984,21 @@ export default {
           })
           .then(() => {
             publishPlan(row.id, 1);
+            setTimeout(() => {
+              this.getList()
+            }, 100)
           });
       } else {
         if (row.planStatus == 0) {
-          msg = "请选择从当前轮次或周期开始生成任务?";
+          msg = "请选择从当前轮次或周期开始生成任务?";
           this.$refs["DialogThreeState"].show(
             msg,
             (state) => {
               if (state == 0 || state == 1) {
                 publishPlan(row.id, state);
+                setTimeout(() => {
+                  this.getList()
+                }, 100)
               }
             },
             {
@@ -1008,6 +1015,9 @@ export default {
             })
             .then(() => {
               publishPlan(row.id, 0);
+              setTimeout(() => {
+                this.getList()
+              }, 100)
             });
         }
       }