Explorar el Código

机构树刷新

luojun hace 1 año
padre
commit
def5bd40d0
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  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");
           });
         }
       });