From 184acd5b0b7b91eac0ee6c028f50437dbd087573 Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期四, 08 十二月 2022 10:41:41 +0800
Subject: [PATCH] 我的待办参数修改,案卷查询搜索参数修改

---
 src/views/operate/viewEvent/index.vue |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/views/operate/viewEvent/index.vue b/src/views/operate/viewEvent/index.vue
index 24ec25a..628f749 100644
--- a/src/views/operate/viewEvent/index.vue
+++ b/src/views/operate/viewEvent/index.vue
@@ -15,19 +15,17 @@
         <div class="contentItem">
           <div style="width: 80px">鎸夌被鍨�:</div>
           <div class="search">
-            <el-input
-              placeholder=" 璇疯緭鍏ョ被鍨�"
-              v-model="searchData.categories"
-            ></el-input>
+            <el-select clearable v-model="searchData.categories" placeholder=" 璇烽�夋嫨绫诲瀷">
+              <el-option v-for="option in categoryOptions" :key="option.id" :label="option.label" :value="option.value"></el-option>
+            </el-select>
           </div>
         </div>
         <div class="contentItem">
           <div style="width: 80px">鎸夌ぞ鍖�:</div>
           <div class="search">
-            <el-input
-              placeholder=" 璇疯緭鍏ョぞ鍖�"
-              v-model="searchData.communityId"
-            ></el-input>
+            <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>
           </div>
         </div>
         <div class="contentItem">
@@ -186,6 +184,7 @@
 import helper from "@/utils/mydate";
 import casequery from "@/api/operate/basecase";
 import { CATEGOTY } from "@/utils/helper";
+import department from "@/api/system/department";
 
 export default {
   components: {
@@ -207,18 +206,8 @@
       totalNum: null,
       pageSize: 10,
       currentPage: 1,
-      typeList: [
-        {
-          name: "杩濊",
-          value: 1,
-          checked: true,
-        },
-        {
-          name: "杩濆缓",
-          value: 2,
-          checked: false,
-        },
-      ],
+      categoryOptions: CATEGOTY,
+      communityOptions: [],
       myproblem: 1,
       number: "",
       searchData: {
@@ -233,6 +222,7 @@
   },
   created() {
     this.getList();
+    this.getCommunityOptions();
   },
   methods: {
     // 鑾峰彇鍒楄〃
@@ -251,6 +241,16 @@
           this.tableData = [];
         });
     },
+
+    // 鑾峰彇绀惧尯鍜岃閬�
+    getCommunityOptions() {
+      department.getDepartmentList()
+          .then(res => {
+            this.communityOptions = res;
+          })
+          .catch(err => this.$message.error(err))
+    },
+
     // 璁剧疆琛ㄦ牸鏂戦┈绾�
     tableRowClassName({ row, rowIndex }) {
       if ((rowIndex + 1) % 2 === 0) {

--
Gitblit v1.8.0