39c59c75 by weimo934

Merge remote-tracking branch 'origin/master'

2 parents 7849453d ddb49435
......@@ -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;
......
......@@ -2,25 +2,25 @@
<div class="lpb">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="编辑楼盘" name="edit">
<edit></edit>
<bjlp></bjlp>
</el-tab-pane>
<el-tab-pane label="预览楼盘" name="preview">
<preview></preview>
<yllp></yllp>
</el-tab-pane>
<el-tab-pane label="详细信息" name="detail">
<detail></detail>
<xxxx></xxxx>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import edit from "./edit"
import preview from "./preview"
import detail from "./detail"
import bjlp from "./bjlp"
import yllp from "./yllp"
import xxxx from "./xxxx"
export default {
name:"",
components:{edit,preview,detail},
components:{bjlp,yllp,xxxx},
props:{},
data() {
return {
......