From 23abf3c8d6ca9577608a3d5ab207d0da67e6e752 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 06 十一月 2024 16:47:58 +0800
Subject: [PATCH] 搜索样式功能统一、一些搜索bug

---
 src/views/system/point/index.vue |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/src/views/system/point/index.vue b/src/views/system/point/index.vue
index 7743bcc..93f2536 100644
--- a/src/views/system/point/index.vue
+++ b/src/views/system/point/index.vue
@@ -5,6 +5,19 @@
         <el-input v-model="queryParams.pointName" placeholder="杈撳叆鐐逛綅鍚嶇О" clearable @clear="handleQuery" @keyup.enter.native="handleQuery" />
       </el-form-item>
       <el-form-item label="鍗曚綅" prop="unit">
+        <el-select
+          v-model="queryParams.unitId"
+          placeholder="璇烽�夋嫨鍗曚綅"
+          clearable
+          @change="handleQuery"
+        >
+          <el-option
+            v-for="unit in unitList"
+            :key="unit.id"
+            :label="unit.value"
+            :value="unit.id"
+          />
+        </el-select>
       </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">鎼滅储</el-button>
@@ -247,7 +260,6 @@
 import { unitSelect } from "@/api/platform/unit";
 import { getCascader } from '@/api/platform/region'
 import { cascader } from '@/api/system/dept'
-
 export default {
   name: "Point",
   dicts: ['point_tag', 'area_code'],
@@ -442,7 +454,12 @@
     handleEditBatch() {
       this.batchOpen = true;
     },
-
+    // 杩愮淮鍏徃涓嬫媺鏁版嵁
+    selectUnit() {
+      workList(this.queryParams).then(res => {
+        this.unitList = res.data;
+      })
+    },
     // 鑾峰彇鍖哄幙绾ц仈
     getCascader() {
       getCascader().then(res => {

--
Gitblit v1.8.0