From a531e8cce9f8d30a2ef9789eb04eb00b73f16a2b Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 06 Jan 2024 16:01:19 +0800
Subject: [PATCH] 数据管理下所有模块对应页面调整:搜索、字段展示; 搜索后,分页切换显示异常BUG

---
 src/views/district/index.vue |   26 +++++++++-----------------
 1 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/src/views/district/index.vue b/src/views/district/index.vue
index b7ec598..4bce92b 100644
--- a/src/views/district/index.vue
+++ b/src/views/district/index.vue
@@ -33,13 +33,15 @@
             selectionList: [],
             option: {
                 labelWidth: 120,
+                searchLabelWidth: 96,
+                searchShow: true,
+                searchMenuSpan: 3,
+                menuWidth: 210,
+
                 height: "auto",
                 calcHeight: 54,
                 dialogWidth: 950,
                 tip: false,
-                searchShow: true,
-                searchMenuSpan: 3,
-                menuWidth: 280,
                 border: true,
                 //stripe:true,
                 index: true,
@@ -314,20 +316,11 @@
             this.onLoad(this.page, this.query)
         },
         onLoad (page, params = {}) {
-            const { dateTime, communityCode } = this.query
-            let values = {
-                ...params,
-            }
+            this.loading = true
 
-            if (dateTime) {
-                values = {
-                    ...params,
-                    startTime: dateTime[0],
-                    endTime: dateTime[1],
-                    ...this.query,
-                }
-                values.dateTime = null
-            }
+            let values = Object.assign(params, this.query)
+
+            const { communityCode } = this.query
 
             if (communityCode) {
                 values = {
@@ -338,7 +331,6 @@
                 delete values.communityCode
             }
 
-            this.loading = true
             getList(page.currentPage, page.pageSize, values).then((res) => {
                 const data = res.data.data
                 this.page.total = data.total

--
Gitblit v1.9.3