|
@@ -91,7 +91,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(['globalCommunity','thisArr']),
|
|
|
+ ...mapState(['globalCommunity', 'thisArr']),
|
|
|
menuList() {
|
|
|
return this.$store.getters['getMenuList'] || [];
|
|
|
}
|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
// },
|
|
|
thisArr: {
|
|
|
handler(newVal, oldVal) {
|
|
|
- this.communityValue = this.$store.getters['getThisArr']
|
|
|
+ this.communityValue = this.$store.getters['getThisArr'];
|
|
|
},
|
|
|
deep: true
|
|
|
}
|
|
@@ -167,14 +167,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
fitersValue(arrs, value) {
|
|
|
- value.children.map((item) => {
|
|
|
- if (item.type == 'org') {
|
|
|
- arrs.push(item);
|
|
|
- if (!!item.children) {
|
|
|
- this.fitersValue(arrs, item);
|
|
|
+ if (!!value.children) {
|
|
|
+ value.children.map((item) => {
|
|
|
+ if (item.type == 'org') {
|
|
|
+ arrs.push(item);
|
|
|
+ if (!!item.children) {
|
|
|
+ this.fitersValue(arrs, item);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ arrs.push(value);
|
|
|
+ }
|
|
|
},
|
|
|
communityNameList() {
|
|
|
this.$http.get('/sc-community/assets/tree/community/findCompanyCommunityTree').then(({ data, msg, status }) => {
|