feat(frontend):UI fix
This commit is contained in:
parent
0fb612d64e
commit
592e8c9c5e
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-col>
|
||||
<el-col ref="container" style="width: 100%;height:100%">
|
||||
<span>{{ table.name }}</span>
|
||||
<ux-grid
|
||||
ref="plxTable"
|
||||
@ -36,7 +36,7 @@ export default {
|
||||
return {
|
||||
fields: [],
|
||||
data: [],
|
||||
height: 500
|
||||
height: 'auto'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -45,12 +45,12 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
window.onresize = () => {
|
||||
return (() => {
|
||||
this.height = window.innerHeight / 3
|
||||
})()
|
||||
}
|
||||
this.height = window.innerHeight / 3
|
||||
// window.onresize = () => {
|
||||
// return (() => {
|
||||
// this.height = window.innerHeight / 3
|
||||
// })()
|
||||
// }
|
||||
// this.height = window.innerHeight / 3
|
||||
this.initData()
|
||||
},
|
||||
methods: {
|
||||
@ -62,11 +62,11 @@ export default {
|
||||
this.fields = response.data.fields
|
||||
this.data = response.data.data
|
||||
const datas = this.data
|
||||
if(response.data.status === 'warnning'){
|
||||
this.$warning(response.data.msg, 3000);
|
||||
if (response.data.status === 'warnning') {
|
||||
this.$warning(response.data.msg, 3000)
|
||||
}
|
||||
if(response.data.status === 'error'){
|
||||
this.$error(response.data.msg, 3000);
|
||||
if (response.data.status === 'error') {
|
||||
this.$error(response.data.msg, 3000)
|
||||
}
|
||||
this.$refs.plxTable.reloadData(datas)
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user