楼盘表下没有幢单元只有独立层户的逻辑幢宽度计算
Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -84,6 +84,7 @@ | ... | @@ -84,6 +84,7 @@ |
| 84 | <!-- 循环逻辑幢下的层户 --> | 84 | <!-- 循环逻辑幢下的层户 --> |
| 85 | <div | 85 | <div |
| 86 | class="ljz-ch" | 86 | class="ljz-ch" |
| 87 | ref="ljzDlch" | ||
| 87 | :style="{ height: 'auto' }" | 88 | :style="{ height: 'auto' }" |
| 88 | v-if="ljzs.cs.length > 0" | 89 | v-if="ljzs.cs.length > 0" |
| 89 | > | 90 | > |
| ... | @@ -472,6 +473,11 @@ export default { | ... | @@ -472,6 +473,11 @@ export default { |
| 472 | this.ljzWidth += item.offsetWidth + 20; | 473 | this.ljzWidth += item.offsetWidth + 20; |
| 473 | }); | 474 | }); |
| 474 | } else { | 475 | } else { |
| 476 | if (this.$refs.ljzDlch != undefined) { | ||
| 477 | this.$refs.ljzDlch.forEach((item) => { | ||
| 478 | this.ljzWidth += item.offsetWidth + 20; | ||
| 479 | }); | ||
| 480 | } | ||
| 475 | } | 481 | } |
| 476 | //计算独立幢单元和独立层户宽度 | 482 | //计算独立幢单元和独立层户宽度 |
| 477 | //考虑this.$refs.zdy的length为0的情况,即自然幢下没有独立幢单元 | 483 | //考虑this.$refs.zdy的length为0的情况,即自然幢下没有独立幢单元 | ... | ... |
-
Please register or sign in to post a comment