From 62ae55ae397b7997b147a7b946f7ad5f1c78a45d Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期三, 26 十月 2022 19:34:33 +0800 Subject: [PATCH] 综合展示,系统管理,授权管理,专题图,资料馆添加权限配置 --- src/views/Synthesis/orientation.vue | 38 ++++++++++++++++++++++++++------------ 1 files changed, 26 insertions(+), 12 deletions(-) diff --git a/src/views/Synthesis/orientation.vue b/src/views/Synthesis/orientation.vue index 4239522..3a564a4 100644 --- a/src/views/Synthesis/orientation.vue +++ b/src/views/Synthesis/orientation.vue @@ -21,25 +21,39 @@ return { itemsOne: [ { - id: "1", - name: "synthesis.gpsrtk", - class: "f1", + id: '1', + name: 'synthesis.gpsrtk', + class: 'f1', }, { - id: "2", - name: "synthesis.placenamelocation", - class: "f2", + id: '2', + name: 'synthesis.placenamelocation', + class: 'f2', }, ], }; }, + created() { + var cover_Id = this.$store.state.syntiesis.menu; + var cover_perms = this.$store.state.permsEntity; + + for (var i = 0; i < cover_perms.length; i++) { + if (cover_perms[i].pid == cover_Id) { + this.showViewMenu(cover_perms[i]); + } + } + }, methods: { + showViewMenu(res) { + if (res.cnName != '瀹氫綅') return; + console.log('瀹氫綅', res.tag); + }, changeOrietnt(res) { - var res_val = { - url: "", - name: res.name, + var val = { + name: 'Coord', + id: res.id, }; - this.$bus.$emit("changetool", res_val); + this.$bus.$emit('mapChangeBox', val); }, }, }; @@ -65,10 +79,10 @@ margin: 0px; } .f1 { - background: url("../../assets/img/synthesis/鍥惧眰 27.png") no-repeat center; + background: url('../../assets/img/synthesis/鍥惧眰 27.png') no-repeat center; } .f2 { - background: url("../../assets/img/synthesis/鍥惧眰 28.png") no-repeat center; + background: url('../../assets/img/synthesis/鍥惧眰 28.png') no-repeat center; } .backimge6 { width: 30px; -- Gitblit v1.9.3