| | |
| | | name: '标绘', |
| | | class: 'menu_img9', |
| | | show: false, |
| | | }, { |
| | | id: 10, |
| | | name: '场景', |
| | | class: 'menu_img10', |
| | | show: false, |
| | | }, |
| | | ], |
| | | }; |
| | |
| | | } |
| | | }, |
| | | //初始化菜单授权 |
| | | getPermsMenu() { |
| | | async getPermsMenu() { |
| | | if (this.$store.state.currentPerms == '') { |
| | | this.$store.state.currentPerms = '/comprehensive'; |
| | | } |
| | | if (this.$store.state.permsEntity.length == 0) { |
| | | const data = await getPerms(); |
| | | this.$store.state.permsEntity = data.result; |
| | | } |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | for (var i = 0; i < permsEntity.length; i++) { |
| | |
| | | } |
| | | } |
| | | for (var i in this.menuOption) { |
| | | |
| | | if (this.menuOption[i].show != false) { |
| | | this.showMenuList.push(this.menuOption[i]); |
| | | } |
| | |
| | | var std = []; |
| | | std.push(this.menuOption[0]); |
| | | for (var i = 1; i < this.menuOption.length; i++) { |
| | | |
| | | if (this.menuOption[i].name == res.cnName) { |
| | | this.menuOption[i].show = true; |
| | | } |
| | |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getPermsMenu(); |
| | | this.$bus.$emit('showLeftMenu', true); |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | | this.$store.state.mapPopBoolean = false; |
| | |
| | | }, |
| | | //初始化菜单授权 |
| | | created() { |
| | | this.getPermsMenu(); |
| | | // this.getPermsMenu(); |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | background: url('../../assets/img/synthesis/矩形 8 拷贝 11.png') |
| | | no-repeat center; |
| | | } |
| | | .menu_img10{ |
| | | background: url('../../assets/img/synthesis/场景打开1.png') |
| | | no-repeat center; |
| | | } |
| | | } |
| | | // li { |
| | | // background: rgba(53, 53, 53, 0); |
| | |
| | | margin: 0; |
| | | width: 300px; |
| | | height: auto; |
| | | |
| | | transition: width 2s; |
| | | } |
| | | |