|
@@ -88,6 +88,7 @@ export default {
|
|
|
},
|
|
|
showPointArr: [1, 2, 3, 4, 5],
|
|
|
point: [],
|
|
|
+ showOK: false,
|
|
|
imgUrl: require('@/assets/img/homeIcon/bg_bottom.png')
|
|
|
};
|
|
|
},
|
|
@@ -103,16 +104,11 @@ export default {
|
|
|
return showArr;
|
|
|
},
|
|
|
menuListShow() {
|
|
|
- if (
|
|
|
- !!this.$store.getters['getMenuList'] &&
|
|
|
- !!this.$store.getters['getMenuList'][0] &&
|
|
|
- !!this.$store.getters['getMenuList'][0].children &&
|
|
|
- !!this.$store.getters['getMenuList'][0].children[0].name == '添加点位'
|
|
|
- ) {
|
|
|
- return true;
|
|
|
- } else {
|
|
|
- return false;
|
|
|
+ let arrs = this.$store.getters['getMenuList'] || [];
|
|
|
+ if (arrs.length !== 0) {
|
|
|
+ this.mapfitet(arrs);
|
|
|
}
|
|
|
+ return this.showOK;
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -126,6 +122,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ mapfitet(arr) {
|
|
|
+ for (let a = 0; a < arr.length; a++) {
|
|
|
+ if (arr[a].children !== null) {
|
|
|
+ this.mapfitet(arr[a].children);
|
|
|
+ } else {
|
|
|
+ if (arr[a].linkPath == 'isPointShow') {
|
|
|
+ this.showOK = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
addPoint() {
|
|
|
if (this.openCur == 1) {
|
|
|
this.openCur = null;
|