|
@@ -45,7 +45,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-
|
|
|
|
|
|
|
+import { mapGetters, mapMutations } from "vuex";
|
|
|
export default {
|
|
export default {
|
|
|
name: "orgTree",
|
|
name: "orgTree",
|
|
|
data() {
|
|
data() {
|
|
@@ -94,10 +94,17 @@ export default {
|
|
|
defaultProps(val) {
|
|
defaultProps(val) {
|
|
|
this.defaultProps = { ...val };
|
|
this.defaultProps = { ...val };
|
|
|
},
|
|
},
|
|
|
|
|
+ orgTree(val)
|
|
|
|
|
+ {
|
|
|
|
|
+ this.getDeptTree();
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.getDeptTree();
|
|
this.getDeptTree();
|
|
|
},
|
|
},
|
|
|
|
|
+ computed:{
|
|
|
|
|
+ ...mapGetters(["orgTree"]),
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
/** 下穿状态改变*/
|
|
/** 下穿状态改变*/
|
|
|
changeCheckBox(state) {
|
|
changeCheckBox(state) {
|