|
@ -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> |