|
@@ -19,7 +19,7 @@
|
|
|
<div class='view-left'>
|
|
|
<div class='lb-left'>
|
|
|
<div v-if='pic2.length>0' style='height:100%'>
|
|
|
- <rotation :rotationImg='pic2'></rotation>
|
|
|
+ <rotation :key='2' :rotationImg='pic2' @scan='scan'></rotation>
|
|
|
<div class='lb-icon' @click='picClick("2")'></div>
|
|
|
<img class='lb-img' @click='picClick("2")' src='../../assets/imgs/zk.png' alt />
|
|
|
</div>
|
|
@@ -78,7 +78,7 @@
|
|
|
<div class='view-right-box'>
|
|
|
<div class='lb-right'>
|
|
|
<div v-if='pic1.length>0' style='height:100%'>
|
|
|
- <rotation :rotationImg='pic1'></rotation>
|
|
|
+ <rotation :rotationImg='pic1' :key='1' @scan='scan'></rotation>
|
|
|
<div class='lb-icon' @click='picClick("1")'></div>
|
|
|
<img class='lb-img' @click='picClick("1")' src='../../assets/imgs/zk.png' alt />
|
|
|
</div>
|
|
@@ -196,18 +196,29 @@ export default {
|
|
|
return {
|
|
|
loading: true,
|
|
|
pic1: [], //区位图
|
|
|
- pic2: [], //鸟瞰图
|
|
|
+ pic2: [
|
|
|
+ { url: 'http://10.199.204.168:9080/doclinks/MANAGEINS/2020061921275833224467353鸟瞰图.jpg' },
|
|
|
+ { url: 'http://10.199.204.168:9080/doclinks/MANAGEINS/2020061921275833224467353鸟瞰图.jpg' }
|
|
|
+ ], //鸟瞰图
|
|
|
build: {}, //左下信息
|
|
|
constructions: [], //右下数组
|
|
|
- shuzihuayijiao: ''
|
|
|
+ shuzihuayijiao: '',
|
|
|
+ va: ''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ scan(val) {
|
|
|
+ this.va = val
|
|
|
+ },
|
|
|
picClick(type) {
|
|
|
- if (type == 1) {
|
|
|
- this.$refs.picModal.showModal(this.pic1)
|
|
|
+ if (String(this.pic) == String(this.va)) {
|
|
|
+ this.$refs.picModal.showModal([{ url: this.pic }])
|
|
|
} else {
|
|
|
- this.$refs.picModal.showModal(this.pic2)
|
|
|
+ if (type == 1) {
|
|
|
+ this.$refs.picModal.showModal(this.pic1)
|
|
|
+ } else {
|
|
|
+ this.$refs.picModal.showModal(this.pic2)
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
findxmzl() {
|
|
@@ -226,12 +237,12 @@ export default {
|
|
|
if (res.result == 'success') {
|
|
|
this.loading = false
|
|
|
this.pic1 = []
|
|
|
- this.pic2 = []
|
|
|
+ // this.pic2 = []
|
|
|
this.build = {}
|
|
|
this.constructions = []
|
|
|
this.shuzihuayijiao = ''
|
|
|
this.pic1 = res.pic1 ? res.pic1 : []
|
|
|
- this.pic2 = res.pic2 ? res.pic2 : []
|
|
|
+ // this.pic2 = res.pic2 ? res.pic2 : []
|
|
|
this.build = res.build ? res.build : {}
|
|
|
this.constructions = res.constructions ? res.constructions : []
|
|
|
this.shuzihuayijiao = res.shuzihuayijiao ? res.shuzihuayijiao : ''
|
|
@@ -262,13 +273,11 @@ export default {
|
|
|
// }
|
|
|
let previewUrl = location.href.split('=')[1] ? location.href.split('=')[1].split('&')[0] : false,
|
|
|
plazaId = location.href.split('=')[2] ? location.href.split('=')[2] : '1000423'
|
|
|
- console.log('previewUrl:', previewUrl)
|
|
|
- console.log('plazaId:', plazaId)
|
|
|
this.$store.commit('SETISPREVIEW', previewUrl)
|
|
|
this.query()
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['isPreview'])
|
|
|
+ ...mapGetters(['isPreview', 'pic'])
|
|
|
},
|
|
|
components: {
|
|
|
PicModal
|