From 8dc2373115429741463a66bb2cf54ce5141cafe3 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期一, 17 三月 2025 17:50:10 +0800
Subject: [PATCH] 1.来料检验搜索框

---
 H5/Js/LLJ/List.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/H5/Js/LLJ/List.js b/H5/Js/LLJ/List.js
index 661f5af..d961e1e 100644
--- a/H5/Js/LLJ/List.js
+++ b/H5/Js/LLJ/List.js
@@ -18,7 +18,9 @@
             totalCount: 0,
 
             checked: true,
-            id:''
+            id: '',
+            searchKeyword: '',      // 鎼滅储鍏抽敭璇�
+            originalData: [],       // 淇濆瓨鍘熷鏁版嵁
         }
     },
     mounted() {
@@ -30,6 +32,15 @@
         this.onLoad();
     },
     methods: {
+
+        // 鏂板鎼滅储澶勭悊鏂规硶
+        handleSearch() {
+            this.pageIndex = 0;
+            this.data = [];
+            this.finished = false;
+            this.isSearching = true;
+            this.onLoad();
+        },
 
         onLoad() {
 
@@ -50,7 +61,8 @@
                 pageIndex: that.pageIndex,
                 limit: that.limit,
                 createUser: that.userInfo.loginAccount,
-                result: result
+                result: result,
+                keyword: that.searchKeyword.trim(), // 鏂板鎼滅储鍙傛暟
             }, false)
                 .then(function (res) {
                     var json = res;

--
Gitblit v1.9.3