楼盘表逻辑幢下没有幢单元且有独立层户时的宽度
Showing
1 changed file
with
5 additions
and
5 deletions
| ... | @@ -197,6 +197,7 @@ | ... | @@ -197,6 +197,7 @@ |
| 197 | <!-- <template > --> | 197 | <!-- <template > --> |
| 198 | <div | 198 | <div |
| 199 | class="zdy column-reverse" | 199 | class="zdy column-reverse" |
| 200 | ref="zrzDlch" | ||
| 200 | :style="{ 'min-height': cHeight + 'px' }" | 201 | :style="{ 'min-height': cHeight + 'px' }" |
| 201 | > | 202 | > |
| 202 | <table | 203 | <table |
| ... | @@ -466,6 +467,7 @@ export default { | ... | @@ -466,6 +467,7 @@ export default { |
| 466 | }, | 467 | }, |
| 467 | //自然幢下元素高度宽度计算 | 468 | //自然幢下元素高度宽度计算 |
| 468 | dataChange() { | 469 | dataChange() { |
| 470 | debugger | ||
| 469 | //计算逻辑幢宽度 20为marginRight值 | 471 | //计算逻辑幢宽度 20为marginRight值 |
| 470 | this.ljzWidth = 20; | 472 | this.ljzWidth = 20; |
| 471 | if (this.$refs.ljzzdy != undefined) { | 473 | if (this.$refs.ljzzdy != undefined) { |
| ... | @@ -506,10 +508,8 @@ export default { | ... | @@ -506,10 +508,8 @@ export default { |
| 506 | } | 508 | } |
| 507 | } else { | 509 | } else { |
| 508 | //有且仅有独立层户 | 510 | //有且仅有独立层户 |
| 509 | if (this.$refs.hBsm != undefined) { | 511 | if (this.$refs.zrzDlch != undefined) { |
| 510 | this.$refs.hBsm.forEach((item) => { | 512 | this.zdyWidth = this.$refs.zrzDlch.offsetWidth+20; |
| 511 | this.zdyWidth += item.offsetWidth + 21; | ||
| 512 | }); | ||
| 513 | } | 513 | } |
| 514 | } | 514 | } |
| 515 | 515 | ||
| ... | @@ -544,7 +544,7 @@ export default { | ... | @@ -544,7 +544,7 @@ export default { |
| 544 | }); | 544 | }); |
| 545 | } | 545 | } |
| 546 | } else { | 546 | } else { |
| 547 | // this.zdyWidth = 124; | 547 | |
| 548 | } | 548 | } |
| 549 | }, | 549 | }, |
| 550 | //户单击事件 | 550 | //户单击事件 | ... | ... |
-
Please register or sign in to post a comment