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

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

@ -55,7 +55,7 @@ export default {
}, },
mounted () { mounted () {
this.dragChangeSize((topHeight,bottomHeight) => { this.dragChangeSize((topHeight,bottomHeight) => {
this.calculateTableHeight(topHeight - 70)
this.calculateTableHeight(topHeight - 110)
this.calculateFormalTableHeight(bottomHeight - 70) this.calculateFormalTableHeight(bottomHeight - 70)
},{barHeight:50}); },{barHeight:50});
}, },


Loading…
Cancel
Save