diff --git a/src/views/factoryModel/basicUnit/index.vue b/src/views/factoryModel/basicUnit/index.vue index 1b0f983..c344209 100644 --- a/src/views/factoryModel/basicUnit/index.vue +++ b/src/views/factoryModel/basicUnit/index.vue @@ -43,7 +43,8 @@ size="mini" style="width: 100%" border - v-if="tableHeight" :height="tableHeight" + v-if="tableHeight" + :height="tableHeight" > { + mounted() { + this.$nextTick(() => { this.tableHeight = this.calculationTableHeight( this.$refs.tableRef, 120 @@ -163,8 +164,8 @@ export default { }; diff --git a/src/views/plan/workbench/homePage/index.vue b/src/views/plan/workbench/homePage/index.vue index 1f74346..eb6fd54 100644 --- a/src/views/plan/workbench/homePage/index.vue +++ b/src/views/plan/workbench/homePage/index.vue @@ -55,7 +55,7 @@ export default { }, mounted () { this.dragChangeSize((topHeight,bottomHeight) => { - this.calculateTableHeight(topHeight - 70) + this.calculateTableHeight(topHeight - 110) this.calculateFormalTableHeight(bottomHeight - 70) },{barHeight:50}); },