每次添加层户后重新渲染楼盘表
Showing
1 changed file
with
6 additions
and
2 deletions
... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
47 | </div> | 47 | </div> |
48 | <!-- 楼盘表主体 --> | 48 | <!-- 楼盘表主体 --> |
49 | <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> | 49 | <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> |
50 | <lpbContent ref="lpbContent"></lpbContent> | 50 | <lpbContent ref="lpbContent" :key="time"></lpbContent> |
51 | </div> | 51 | </div> |
52 | <!-- 右侧图例 --> | 52 | <!-- 右侧图例 --> |
53 | <div class="lp-legend"> | 53 | <div class="lp-legend"> |
... | @@ -229,6 +229,7 @@ export default { | ... | @@ -229,6 +229,7 @@ export default { |
229 | legendToggleFlag: false, | 229 | legendToggleFlag: false, |
230 | lpbContentHight: "", | 230 | lpbContentHight: "", |
231 | lpbContentwidth: "", | 231 | lpbContentwidth: "", |
232 | time:'' | ||
232 | }; | 233 | }; |
233 | }, | 234 | }, |
234 | created() { | 235 | created() { |
... | @@ -357,8 +358,11 @@ export default { | ... | @@ -357,8 +358,11 @@ export default { |
357 | }, | 358 | }, |
358 | //调用楼盘表信息查询接口 | 359 | //调用楼盘表信息查询接口 |
359 | getlpbData(){ | 360 | getlpbData(){ |
360 | this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm) | 361 | this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm); |
362 | //改变楼盘表子组件的key值,重新渲染 | ||
363 | this.time = new Date().getTime(); | ||
361 | }, | 364 | }, |
365 | //实预测装换 | ||
362 | plScYcChange(){ | 366 | plScYcChange(){ |
363 | let data={ | 367 | let data={ |
364 | zrzbsm:this.$store.state.zrzbsm, | 368 | zrzbsm:this.$store.state.zrzbsm, | ... | ... |
-
Please register or sign in to post a comment