From 60384e8241fa855b5780260633ee9b9f8904847a Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期五, 20 六月 2025 14:24:19 +0800
Subject: [PATCH] feat(eims-ui-mobile): 为多个页面添加搜索功能 - 在 equ-list、insp-st、maint-st、req-list 和 res-list 页面中添加设备名称和资产编号的模糊搜索

---
 eims-ui-mobile/src/pages/repair/req-list.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/eims-ui-mobile/src/pages/repair/req-list.vue b/eims-ui-mobile/src/pages/repair/req-list.vue
index ea3ff6f..974d2aa 100644
--- a/eims-ui-mobile/src/pages/repair/req-list.vue
+++ b/eims-ui-mobile/src/pages/repair/req-list.vue
@@ -23,6 +23,8 @@
         custom-style="background: #4D80F0;"
         safeAreaInsetTop
       ></wd-navbar>
+      <!-- 澧炲姞涓�涓悳绱㈡爮 -->
+      <wd-search v-model="searchValue" @search="handleSearch"></wd-search>
 <!--      <wd-drop-menu v-if="!isSelectReq">-->
 <!--        <wd-drop-menu-item-->
 <!--          v-model="reqTypeId"-->
@@ -157,7 +159,7 @@
 const reqTypeId = ref<number>(-1)
 // 鎶ヤ慨鍗曞鐞嗙姸鎬�
 const status = ref<number>(-1)
-
+const searchValue = ref<string>('')
 const isSelectReq = ref(false)
 
 const filterDate = ref<string>('2')
@@ -189,7 +191,9 @@
   const queryParams: any = {
     pageNum,
     pageSize,
-    params: {},
+    params: {
+      searchValue: searchValue.value,
+    },
   }
   // if (reqTypeId.value === -1) {
   //   delete queryParams.reqType
@@ -268,6 +272,11 @@
     })
 }
 
+function handleSearch() {
+  console.log('handleSearch')
+  paging.value.reload()
+}
+
 /**
  * 鏉$洰鐐瑰嚮浜嬩欢
  * @param item

--
Gitblit v1.9.3