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

feat(frontend):UI fix

上级 0fb612d6
<template> <template>
<el-col> <el-col ref="container" style="width: 100%;height:100%">
<span>{{ table.name }}</span> <span>{{ table.name }}</span>
<ux-grid <ux-grid
ref="plxTable" ref="plxTable"
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
return { return {
fields: [], fields: [],
data: [], data: [],
height: 500 height: 'auto'
} }
}, },
watch: { watch: {
...@@ -45,12 +45,12 @@ export default { ...@@ -45,12 +45,12 @@ export default {
} }
}, },
mounted() { mounted() {
window.onresize = () => { // window.onresize = () => {
return (() => { // return (() => {
this.height = window.innerHeight / 3 // this.height = window.innerHeight / 3
})() // })()
} // }
this.height = window.innerHeight / 3 // this.height = window.innerHeight / 3
this.initData() this.initData()
}, },
methods: { methods: {
...@@ -62,11 +62,11 @@ export default { ...@@ -62,11 +62,11 @@ export default {
this.fields = response.data.fields this.fields = response.data.fields
this.data = response.data.data this.data = response.data.data
const datas = this.data const datas = this.data
if(response.data.status === 'warnning'){ if (response.data.status === 'warnning') {
this.$warning(response.data.msg, 3000); this.$warning(response.data.msg, 3000)
} }
if(response.data.status === 'error'){ if (response.data.status === 'error') {
this.$error(response.data.msg, 3000); this.$error(response.data.msg, 3000)
} }
this.$refs.plxTable.reloadData(datas) this.$refs.plxTable.reloadData(datas)
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论