Browse Source

Merge pull request '客户需求管理工作台拖拽优化' (#150) from wangxy into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_AdvancedPlanner_Front/pulls/150
pull/156/head
wangxy 3 years ago
parent
commit
083baf9323
2 changed files with 10 additions and 9 deletions
  1. +9
    -8
      src/views/factoryModel/basicUnit/index.vue
  2. +1
    -1
      src/views/plan/workbench/homePage/index.vue

+ 9
- 8
src/views/factoryModel/basicUnit/index.vue View File

@ -43,7 +43,8 @@
size="mini"
style="width: 100%"
border
v-if="tableHeight" :height="tableHeight"
v-if="tableHeight"
:height="tableHeight"
>
<el-table-column
v-for="(item, index) in headers"
@ -118,7 +119,7 @@ export default {
// "Uom-LastUser",
// "Uom-CreateTime",
],
tableHeight:0
tableHeight: 0
};
},
methods: {
@ -152,8 +153,8 @@ export default {
this.delHanle(keyName, deteleUrl);
},
},
mounted(){
this.$nextTick(()=>{
mounted() {
this.$nextTick(() => {
this.tableHeight = this.calculationTableHeight(
this.$refs.tableRef,
120
@ -163,8 +164,8 @@ export default {
};
</script>
<style lang="less" scoped>
.table-height-wrap{
height: 100%;
overflow: hidden;
}
.table-height-wrap {
height: 100%;
overflow: hidden;
}
</style>

+ 1
- 1
src/views/plan/workbench/homePage/index.vue View File

@ -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});
},


Loading…
Cancel
Save