269f7045 by 杨威

楼盘表内容区高度动态计算

1 parent 06f8233f
......@@ -3,7 +3,6 @@
padding-top: 0;
box-sizing: border-box;
width: 100%;
height: 100%;
}
.el-table .success-row {
background:@tablebg;
......
......@@ -18,7 +18,7 @@
<el-button class="radioBtn" label="7" border>批量单元号</el-button>
</div>
</div>
<div class="tab-content">
<div class="tab-content" :style="{'height':lpbContentHight+'px'}">
<div class="lp-tree" :class="createFlag ? 'w260':'w0'">
<LineTree :pd="pd" class="treeData" :islpb = "islpb" ></LineTree>
<p @click="createFlag = false" style="width:20px;float:left;cursor:pointer;">X</p>
......@@ -29,8 +29,8 @@
<div class="lp-legend">
<div class="handleCol">
<div class="btn" @click="legendToggle">
<i class="el-icon-d-arrow-left"></i>
<!-- <i class="el-icon-d-arrow-right"></i> -->
<i v-show="!legendToggleFlag" class="el-icon-d-arrow-left"></i>
<i v-show="legendToggleFlag" class="el-icon-d-arrow-right"></i>
</div>
<div class="dyzt">
<span>单元状态</span>
......@@ -165,14 +165,22 @@ export default {
mj:'285'
},
],
legendToggleFlag:false
legendToggleFlag:false,
lpbContentHight:''
}
},
created(){},
created(){
window.addEventListener('resize', this.getHeight);
this.getHeight()
},
mounted(){
this.getLpbMenuTree('d1b82b27f2a6ab7bf3f0e7708c96e46f')
},
methods:{
//获取高度计算lpb内容区高度
getHeight(){
this.lpbContentHight = window.innerHeight - 340
},
//创建楼盘
create(){
this.createFlag = true
......@@ -236,6 +244,9 @@ export default {
}
},
computed: {},
destroyed(){
window.removeEventListener('resize', this.getHeight)
},
watch: {
},
}
......@@ -269,9 +280,9 @@ export default {
}
}
.tab-content{
height: calc(100% - 161px);
background-color: #ffffff;
display: flex;
overflow-y: scroll;
.lp-tree{
height: 100%;
overflow: hidden;
......