| | |
| | | routeLayer: null |
| | | } |
| | | }, |
| | | props: { |
| | | comeName: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | getToName: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | | 'viewer', |
| | | // 起点 |
| | | 'startingPoint', |
| | | // 终点 |
| | | 'terminus' |
| | | 'terminus', |
| | | // 出发名称 |
| | | 'getToName', |
| | | // 到达名称 |
| | | 'comeName' |
| | | ]) |
| | | }, |
| | | created () { |
| | |
| | | document.onmouseup = null |
| | | } |
| | | }, |
| | | |
| | | closeModel () { |
| | | this.$parent.closeCampusNav() |
| | | if (this.$route.path.indexOf('/campusnavi') != -1) { |
| | | this.$store.dispatch('delVisitedViews', this.$route) |
| | | this.$router.push('/pcLayout/default') |
| | | } |
| | | |
| | | this.$store.commit('SET_COMENAME', '') |
| | | this.$store.commit('SET_TERMINUS', null) |
| | | this.$store.commit('SET_GETTONAME', '') |
| | | this.$store.commit('SET_STARTINGPOINT', null) |
| | | this.$store.commit('SET_CAMPUSNAVFLAG', false) |
| | | }, |
| | | |
| | | tabClick (param) { |
| | | this.navigationWay = param |
| | | this.tabOneFlag = !this.tabOneFlag |
| | | this.tabTwoFlag = !this.tabTwoFlag |
| | | }, |
| | | |
| | | startNavigation () { |
| | | if (this.routeLayer == null) { |
| | | this.routeLayer = new this.DC.VectorLayer('navigation') |
| | |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | clearLayer () { |
| | | if (this.routeLayer != null) { |
| | | this.routeLayer.clear() |