From 600725fd9c21f36c2de2b0483fea49343f0686ea Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期四, 08 十二月 2022 14:22:44 +0800
Subject: [PATCH] 案卷查询搜索字段更新

---
 src/views/operate/viewEvent/index.vue |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/views/operate/viewEvent/index.vue b/src/views/operate/viewEvent/index.vue
index 628f749..cb544e7 100644
--- a/src/views/operate/viewEvent/index.vue
+++ b/src/views/operate/viewEvent/index.vue
@@ -23,9 +23,8 @@
         <div class="contentItem">
           <div style="width: 80px">鎸夌ぞ鍖�:</div>
           <div class="search">
-            <el-select clearable v-model="searchData.communityId" placeholder="璇烽�夋嫨绀惧尯">
-              <el-option v-for="option in communityOptions" :key="option.id" :value="option.id" :label="option.regionName"></el-option>
-            </el-select>
+            <el-cascader clearable v-model="searchData.community" :props="communityProps" :options="communityOptions" placeholder="璇烽�夋嫨绀惧尯">
+            </el-cascader>
           </div>
         </div>
         <div class="contentItem">
@@ -208,12 +207,16 @@
       currentPage: 1,
       categoryOptions: CATEGOTY,
       communityOptions: [],
+      communityProps: {
+        label: 'regionName',
+        value: 'id'
+      },
       myproblem: 1,
       number: "",
       searchData: {
         categories: null,
         number: null,
-        communityId: null,
+        community: null,
         endTime: null,
         site: null,
         startTime: null,
@@ -227,11 +230,16 @@
   methods: {
     // 鑾峰彇鍒楄〃
     getList() {
+      const searchData = Object.assign({}, this.searchData);
+      if (this.searchData.community) {
+        searchData.communityId = searchData.community[1];
+      }
+      delete searchData.community;
       casequery
         .baseCaseQuery({
           current: this.currentPage,
           pageSize: this.pageSize,
-          ...this.searchData,
+          ...searchData,
         })
         .then((res) => {
           this.tableData = res.records;

--
Gitblit v1.8.0