From 4a6ca044ad639f6f6a32736f376c204db2c57b1a Mon Sep 17 00:00:00 2001
From: liaoboping <344114999@qq.com>
Date: Mon, 25 Aug 2025 11:22:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E9=9A=9C=E7=8E=AF=E5=A2=83=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 9 +-
.../Common/Layout/AntQueryTable.vue | 6 +-
.../simulationScene/database/bzhjsjk.vue | 478 +++++++++---------
3 files changed, 242 insertions(+), 251 deletions(-)
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 @@
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
- 气象环境
- 电磁环境
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
-
-
-
- 新建
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
- this.handleClose()"
- @ok="() => this.handleOk()"
- switch-fullscreen
- :fullscreen.sync="AEModal.fullscreen"
- >
-
-
-
- {{ item.customRender(AEModal.form[item.prop]) }}
-
-
-
-
-
+
+