|
|
@@ -7,6 +7,7 @@ import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import { deptTreeSelect } from "@/api/system/public";
|
|
|
import sync from "@/components/computed.sync.js";
|
|
|
+import { mapGetters, mapMutations } from "vuex";
|
|
|
export default {
|
|
|
name: "orgDropTree",
|
|
|
data() {
|
|
|
@@ -37,9 +38,13 @@ export default {
|
|
|
console.info(this.currentNode)
|
|
|
this.$emit("select", this.currentNode);
|
|
|
}
|
|
|
- }
|
|
|
+ },orgTree(val)
|
|
|
+ {
|
|
|
+ this.getDeptTree();
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
+ ...mapGetters(["orgTree"]),
|
|
|
val: sync("value"),
|
|
|
},
|
|
|
components: { Treeselect },
|