소스 검색

机构树刷新

luojun 1 년 전
부모
커밋
def5bd40d0
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      src/views/system/dept/index.vue

+ 10 - 0
src/views/system/dept/index.vue

@@ -712,6 +712,11 @@ export default {
             this.$modal.msgSuccess("处理成功");
             this.open = false;
             this.getList();
+
+            this.$store.dispatch("getOrgTree");
+            this.$store.dispatch("getDepTree");
+            this.$store.dispatch("getBusinessTree");
+            this.$store.dispatch("getWholeTree");
             // this.getDeptTree();
           });
         }
@@ -726,6 +731,11 @@ export default {
             this.open = false;
             this.getList();
             this.getDeptTree();
+            
+            this.$store.dispatch("getOrgTree");
+            this.$store.dispatch("getDepTree");
+            this.$store.dispatch("getBusinessTree");
+            this.$store.dispatch("getWholeTree");
           });
         }
       });