提交 592e8c9c authored 作者: junjie's avatar junjie

feat(frontend):UI fix

上级 0fb612d6
<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)
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论