|
@@ -21,7 +21,7 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <div class="box" :style="nowBaseHeight">
|
|
|
+ <div class="box" ref="nowBox" :style="'height:' + nowBaseHeight + 'px;'">
|
|
|
<label class="lableTxt">当前成本基线</label>
|
|
|
<div class="lableCon" v-for="item in nowBaseList" :key="item.id">
|
|
|
<div><span class="gray_label">{{item.baseName}}:</span></div>
|
|
@@ -342,9 +342,10 @@
|
|
|
if(res.code == 'ok'){
|
|
|
this.nowBaseList = res.data
|
|
|
// if(res.data.length == 0){
|
|
|
- let allboxh = this.$refs.allBox.scrollHeight - 20
|
|
|
+ this.getBoxHeight()
|
|
|
+ // let allboxh = this.$refs.allBox.scrollHeight - 20
|
|
|
// console.log('getnowbase',allboxh);
|
|
|
- this.nowBaseHeight = 'height:' + allboxh + 'px;'
|
|
|
+ // this.nowBaseHeight = allboxh
|
|
|
// }
|
|
|
}else {
|
|
|
this.$message({
|
|
@@ -414,6 +415,10 @@
|
|
|
this.getAddList()
|
|
|
this.getNowBase()
|
|
|
this.getProjectInfo()
|
|
|
+ },
|
|
|
+ getBoxHeight(){
|
|
|
+ let allboxh = this.$refs.allBox.scrollHeight - 20
|
|
|
+ this.nowBaseHeight = allboxh
|
|
|
}
|
|
|
},
|
|
|
created() {
|