|
@@ -30,7 +30,7 @@
|
|
|
<div v-if="itemOne.onType" class="terr-min-box" v-for="(itemTwo,indexTwo) in itemOne.buildFloorVoList"
|
|
|
:key="indexTwo">
|
|
|
<p class="min-name" :class="checkTreeId==itemTwo.id?'check-color':''"
|
|
|
- @click="clickCheckTree(itemTwo,3)">{{itemTwo.name}}</p>
|
|
|
+ @click="clickCheckTree(itemTwo,3,itemOne)">{{itemTwo.name}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -782,6 +782,8 @@
|
|
|
if (type == 1) {
|
|
|
this.$set(this, 'pageType', type)
|
|
|
} else if (type == 2) {
|
|
|
+ console.log('type',type)
|
|
|
+ console.log('item',item)
|
|
|
this.$set(this, 'propsData', item)
|
|
|
if(item.name){
|
|
|
this.$set(this.propsData, 'buildName', item.buildName)
|
|
@@ -849,7 +851,9 @@
|
|
|
})
|
|
|
},
|
|
|
//树状结构选中
|
|
|
- clickCheckTree(item, type) {
|
|
|
+ clickCheckTree(item, type, itemOne) {
|
|
|
+ console.log('item',item);
|
|
|
+ console.log('type',type);
|
|
|
if (item.id != this.checkTreeId) {
|
|
|
this.$set(this, 'checkTreeId', item.id)
|
|
|
this.$set(this, 'checkTreeType', type)
|
|
@@ -860,6 +864,7 @@
|
|
|
this.$set(this, 'ldName', item.name)
|
|
|
this.$set(this, 'buildingList', [])
|
|
|
} else if (type == 3) {
|
|
|
+ this.$set(this, 'ldName', itemOne.name)
|
|
|
this.$set(this, 'lcName', item.name)
|
|
|
this.$set(this, 'buildingList', {})
|
|
|
}
|