2e330ad4 by 杨威

楼盘表宽度调整

1 parent 343af95f
<template>
<div ref="lpb" class="content_box">
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" >
<el-tab-pane label="自然幢信息" name="zrzxx"><zrzxx></zrzxx></el-tab-pane>
<el-tab-pane label="业主共有" name="yzgy"><yzgy v-if="yzgyLoad" :is-disabled="isDisabled"></yzgy></el-tab-pane>
......@@ -10,6 +11,7 @@
<lcgz ref="lcgz" ></lcgz>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
......@@ -65,7 +67,9 @@ export default {
},
created() {},
mounted() {
// this.$store.state.contentWidth = this.$refs.lpb.offsetWidth - 44;
// this.$nextTick(()=>{
this.$store.state.contentWidth = this.$refs.lpb.offsetWidth - 44;
// })
},
computed: {},
watch: {},
......
......@@ -481,7 +481,6 @@ export default {
this.getDyztBsmList();
//获取房屋用途统计数据
this.getLpbFwytAndQlxz();
this.getLpbQsxtj();
// 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6
setTimeout(() => {
this.lpbContentwidth = this.$store.state.contentWidth - 34 - 6;
......@@ -642,7 +641,6 @@ export default {
//获取图例数据
this.getDyztBsmList();
this.getLpbFwytAndQlxz();
this.getLpbQsxtj();
//重新渲染楼盘表
this.$refs.lpbContent.dataChange();
},
......@@ -768,7 +766,6 @@ export default {
this.$refs.lpbContent.loadingData(this.$store.state.zrzbsm,this.scyclx);
this.getDyztBsmList();
this.getLpbFwytAndQlxz();
this.getLpbQsxtj();
//改变楼盘表子组件的key值,重新渲染
// this.time = new Date().getTime();
},
......