Forráskód Böngészése

解决缺陷 网点作息 编辑模板后 未查询到作息

zhulu 1 éve
szülő
commit
d64b50ed99
1 módosított fájl, 12 hozzáadás és 2 törlés
  1. 12 2
      src/views/system/workTimeBankingOffice/index.vue

+ 12 - 2
src/views/system/workTimeBankingOffice/index.vue

@@ -216,7 +216,7 @@
         </div>
       </el-col>
     </el-row>
-    <dialog-template ref="modalTemplate" @ok="getList"></dialog-template>
+    <dialog-template ref="modalTemplate" @ok="afterSaveTemplate"></dialog-template>
   </div>
 </template>
 
@@ -521,10 +521,18 @@ export default {
       this.queryParams.checkSub = !this.queryParams.checkSub;
       this.getList();
     },
+    afterSaveTemplate()
+    {
+        this.loading = true;
+        //延时1.5秒,修改模板后,会异步重新生成模板效期后的作息,可能存在查询时,新作息还未生成完的情况
+        setTimeout(()=>{
+          this.getList();
+         },1000)
+    },
     /** 查询列表 */
     getList() {
       this.loading = true;
-      console.log(this.queryParams, "pages");
+      // console.log(this.queryParams, "pages");      
       tableList(this.queryParams)
         .then((response) => {
           this.tableList = response.rows;
@@ -535,6 +543,8 @@ export default {
         .catch((err) => {
           this.loading = false;
         });
+     
+      
     },
 
     // 节点单击事件