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/community/index.vue |   28 +++++++++-------------------
 1 files changed, 9 insertions(+), 19 deletions(-)

diff --git a/src/views/community/index.vue b/src/views/community/index.vue
index 4b197f1..ccb575f 100644
--- a/src/views/community/index.vue
+++ b/src/views/community/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,
@@ -52,7 +54,7 @@
                         overHidden: true,
                         label: "社区名称",
                         prop: "name",
-                        searchSpan: 5,
+                        searchSpan: 4,
                         search: true,
                         span: 12,
                         rules: [
@@ -68,7 +70,7 @@
                         overHidden: true,
                         label: "社区编号",
                         prop: "code",
-                        searchSpan: 5,
+                        searchSpan: 4,
                         search: true,
                         span: 12,
                         rules: [
@@ -333,21 +335,9 @@
             this.onLoad(this.page, this.query)
         },
         onLoad (page, params = {}) {
-            const { dateTime } = this.query
-            let values = {
-                ...params,
-            }
-            if (dateTime) {
-                values = {
-                    ...params,
-                    startTime: dateTime[0],
-                    endTime: dateTime[1],
-                    ...this.query,
-                }
-                values.dateTime = null
-            }
             this.loading = true
-            getList(page.currentPage, page.pageSize, values).then((res) => {
+
+            getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => {
                 const data = res.data.data
                 this.page.total = data.total
                 this.data = data.records

--
Gitblit v1.9.3