Browse Source

test

pull/150/head
wangxy 3 years ago
parent
commit
994cbe93ba
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      src/views/factoryModel/basicUnit/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>

Loading…
Cancel
Save