| | |
| | | src="/img/icon/jg.png" |
| | | alt=""> |
| | | <span> |
| | | {{title}} |
| | | {{orgNavBarTitle}} |
| | | </span> |
| | | </div> |
| | | <img class="close" |
| | |
| | | </div> |
| | | <div class="content"> |
| | | <ul> |
| | | <li v-for="(item, index) in navList" |
| | | <li v-for="(item, index) in orgNavBarList" |
| | | :key="index" |
| | | @click="mapPopup(item)"> |
| | | <img :src="item.icon" |
| | |
| | | DC: null |
| | | } |
| | | }, |
| | | props: { |
| | | navList: { |
| | | type: Array |
| | | }, |
| | | title: { |
| | | type: String |
| | | } |
| | | }, |
| | | created () { |
| | | this.DC = global.DC |
| | | }, |
| | |
| | | // 介绍 |
| | | 'introduceText', |
| | | // 全景地址 |
| | | 'panoramaUrl' |
| | | 'panoramaUrl', |
| | | 'orgNavBarList', |
| | | 'orgNavBarTitle' |
| | | ]) |
| | | }, |
| | | methods: { |
| | |
| | | document.onmouseup = null |
| | | } |
| | | }, |
| | | closeModel () { |
| | | this.$parent.closeModel() |
| | | }, |
| | | |
| | | mapPopup (item) { |
| | | this.$store.commit('CLEAR_ALL', null) |
| | | |
| | |
| | | 3 |
| | | ) |
| | | }, |
| | | |
| | | newPopup (item) { |
| | | const position = this.DC.Transform.transformWGS84ToCartesian(new this.DC.Position(Number(item.longitude), Number(item.latitude), Number(item.alt), Number(item.heading), Number(item.pitch), Number(item.roll))) |
| | | // eslint-disable-next-line no-unused-vars |
| | |
| | | |
| | | this.$store.commit('SET_PANORAMAPOPUP', false) |
| | | this.$store.commit('SET_DETAILSPOPUP', true) |
| | | }, |
| | | |
| | | closeModel () { |
| | | var path = this.$route.path |
| | | if (path.indexOf('/orgnav') != -1) { |
| | | this.$store.dispatch('delVisitedViews', this.$route) |
| | | this.$router.push('/pcLayout/default') |
| | | } |
| | | |
| | | this.$store.commit('SET_ORGNAVBARTITLE', '') |
| | | |
| | | this.$store.commit('SET_ORGNAVBARFLAG', false) |
| | | |
| | | this.$store.commit('SET_ORGNAVBARLIST', []) |
| | | } |
| | | } |
| | | } |