0bee2c7d by weimo934

Merge remote-tracking branch 'origin/master'

2 parents c22ff144 ba094817
......@@ -22,6 +22,9 @@
.dn{
display: none;
}
.cp{
cursor: pointer;
}
.fl{
float: left;
}
......
......@@ -76,7 +76,7 @@
<th>套数</th>
<th>面积</th>
</tr>
<tr v-for="(item, index) in legendList" :key="index">
<tr v-for="(item, index) in legendList" :key="index" class="cp" @click="handleChoosedH">
<td>
<i class="el-icon-star-on" :style="{ color: item.color }"></i
>{{ item.name }}
......@@ -380,7 +380,11 @@ export default {
}
})
},
//选中房屋状态
handleChoosedH(){
//清除选中户
this.$refs.lpbContent.clearChoosedH()
}
},
computed: {
},
......
......@@ -238,6 +238,19 @@ export default {
}
}
},
//清除选中户
clearChoosedH(){
this.$nextTick(()=>{
//将每个选中的户的选中状态清除
this.$refs.hBsm.forEach(item=>{
if(item.className == 'tdSelect'){
item.className = '';
}
});
// 清空hbsmList
this.hbsmList = [];
})
}
},
computed: {
createFlagChange() {
......@@ -260,7 +273,9 @@ export default {
},
//监听有无通过输入框查询选择到的户,如果有,将其bsm放入hbsmList
searchNum(n){
console.log(this.$refs.hBsm,'this.$refs.hBsm');
//清除之前选中户
this.clearChoosedH();
// 渲染查询到的户
this.$nextTick(()=>{
this.$refs.hBsm.forEach(item=>{
if(item.className == 'tdSelect'){
......