diff --git a/src/App.vue b/src/App.vue index 05e1652..bed2e70 100644 --- a/src/App.vue +++ b/src/App.vue @@ -76,19 +76,16 @@ export default { display: flex; flex-direction: column; } -.flex-1 { - flex: 1; -} .flex-cr { display: flex; flex-direction: column-reverse; } +.flex-1 { + flex: 1; +} .ai-fs { align-items: flex-start; } -.ai-s { - align-items: stretch; -} .ai-fe { align-items: flex-end; } diff --git a/src/components/Common/Layout/AntQueryTable.vue b/src/components/Common/Layout/AntQueryTable.vue index c550204..eb5d9e1 100644 --- a/src/components/Common/Layout/AntQueryTable.vue +++ b/src/components/Common/Layout/AntQueryTable.vue @@ -354,7 +354,7 @@ export default { async queryTable() { this.tableLoading = true try { - let res = [] + let res = { data: [] } if (this.tableConfig.query && typeof this.tableConfig.query === 'function') { res = await this.tableConfig.query(this.queryParams) } @@ -369,8 +369,8 @@ export default { return } // ---- 分页模式 ---- - this.tableData = res.data || [] - this.total = res.totalCount || 0 + this.tableData = res?.data?.data || [] + this.total = res?.data?.totalCount || 0 if (this.tableData.length === 0 && this.total > 0) { this.pageParams.pageNum = Math.ceil(this.total / this.pageParams.pageSize) this.queryTable() diff --git a/src/views/simulationScene/database/bzhjsjk.vue b/src/views/simulationScene/database/bzhjsjk.vue index af0f90a..60687a9 100644 --- a/src/views/simulationScene/database/bzhjsjk.vue +++ b/src/views/simulationScene/database/bzhjsjk.vue @@ -1,177 +1,153 @@