|
@@ -19,7 +19,7 @@
|
|
|
<div class='view-left'>
|
|
|
<div class='lb-left'>
|
|
|
<div v-if='pic2.length>0' style='height:100%'>
|
|
|
- <rotation :key='2' :rotationImg='pic2' @scan='scan'></rotation>
|
|
|
+ <rotation :key='2' type='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' :key='1' @scan='scan'></rotation>
|
|
|
+ <rotation type='2' :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,10 +196,7 @@ export default {
|
|
|
return {
|
|
|
loading: true,
|
|
|
pic1: [], //区位图
|
|
|
- pic2: [
|
|
|
- { url: 'http://10.199.204.168:9080/doclinks/MANAGEINS/2020061921275833224467353鸟瞰图.jpg' },
|
|
|
- { url: 'http://10.199.204.168:9080/doclinks/MANAGEINS/2020061921275833224467353鸟瞰图.jpg' }
|
|
|
- ], //鸟瞰图
|
|
|
+ pic2: [], //鸟瞰图
|
|
|
build: {}, //左下信息
|
|
|
constructions: [], //右下数组
|
|
|
shuzihuayijiao: '',
|
|
@@ -211,11 +208,15 @@ export default {
|
|
|
this.va = val
|
|
|
},
|
|
|
picClick(type) {
|
|
|
- if (String(this.pic) == String(this.va)) {
|
|
|
- this.$refs.picModal.showModal([{ url: this.pic }])
|
|
|
- } else {
|
|
|
- if (type == 1) {
|
|
|
+ if (type === '1') {
|
|
|
+ if (this.pic1.length >= this.va) {
|
|
|
+ this.$refs.picModal.showModal([this.pic1[this.va - 1]])
|
|
|
+ } else {
|
|
|
this.$refs.picModal.showModal(this.pic1)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.pic2.length >= this.va) {
|
|
|
+ this.$refs.picModal.showModal([this.pic2[this.va - 1]])
|
|
|
} else {
|
|
|
this.$refs.picModal.showModal(this.pic2)
|
|
|
}
|
|
@@ -237,12 +238,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 : ''
|