| | |
| | | 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); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | 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; |