Commit 5492e9a6 authored by wends's avatar wends

update style problem

parent ad6b8373
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
ref="tableModel" ref="tableModel"
:data="tableData" :data="tableData"
border border
height="541px"
highlight-current-row highlight-current-row
@current-change="handleTableSel" @current-change="handleTableSel"
> >
...@@ -75,7 +74,6 @@ ...@@ -75,7 +74,6 @@
res="tableInstance" res="tableInstance"
:data="tableDataInstance" :data="tableDataInstance"
border border
height="485px"
> >
<el-table-column <el-table-column
type="index" type="index"
...@@ -86,7 +84,7 @@ ...@@ -86,7 +84,7 @@
<el-table-column <el-table-column
prop="instanceName" prop="instanceName"
label="实例名称" label="实例名称"
width="320px" min-width="220px"
/> />
<el-table-column <el-table-column
prop="description" prop="description"
...@@ -211,9 +209,7 @@ export default { ...@@ -211,9 +209,7 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
listModel(pageNum) { listModel(pageNum) {
const { const { name } = this.searchForm
name
} = this.searchForm
const params = { const params = {
name, name,
pageNum, pageNum,
...@@ -225,6 +221,10 @@ export default { ...@@ -225,6 +221,10 @@ export default {
this.tableData = data.records this.tableData = data.records
this.pageForm.total = data.total this.pageForm.total = data.total
this.pageForm.pageNum = data.pageNum this.pageForm.pageNum = data.pageNum
this.$nextTick()
.then(_ => {
this.tableData.length && this.$refs.tableModel.setCurrentRow(this.tableData[0])
})
}) })
.catch(err => { .catch(err => {
console.error(err.message) console.error(err.message)
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
<el-table <el-table
:data="tableData" :data="tableData"
border border
height="500px"
> >
<el-table-column <el-table-column
type="index" type="index"
......
...@@ -208,6 +208,6 @@ export default { ...@@ -208,6 +208,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.container{ .container{
min-height: calc(100vh - 125px); min-height: calc(100vh - 90px);
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment