From ae6d20ec4a30b7e796feb05958bcfc80e55f247b Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 20 七月 2023 15:21:45 +0800
Subject: [PATCH] 整合代码部署

---
 Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue |   25 ++++---------------------
 1 files changed, 4 insertions(+), 21 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
index 6747729..6c9b6e1 100644
--- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -278,6 +278,7 @@
     tableDataArray: {
       handler(newval, oldval) {
         this.tableData = newval;
+        this.searchResults=newval
       },
     },
     tableHeadFindData: {
@@ -659,36 +660,18 @@
       this.batchImportData.codeClassifyOid = this.codeClassifyOid
     },
     //杈撳叆鍥炶溅鎼滅储
-    tableFindInp(event) {
-      console.log('鍥炶溅閿鎸変笅');
-      console.log(this.WupinFindValue)
-      console.log(this.tableData)
-      // 鍦ㄨ繖閲屾墽琛屼綘鐨勬搷浣�
-      // let referList=[]
-      // this.tableData.filter(item => {
-        // console.log(item.name.includes(this.WupinFindValue))
-        // console.log(item.name.indexOf(this.WupinFindValue)>=0)
-      // })
-      // const regex = new RegExp(this.WupinFindValue, 'i');
-      // this.tableData.filter(item => {
-      //   console.log(regex.test(item.name))
-      //   // return regex.test(item.name);
-      // });
+    tableFindInp() {
       if (this.WupinFindValue.trim() === '') {
-        this.searchResults = []; // 杈撳叆鍊间负绌猴紝娓呯┖鎼滅储缁撴灉
+        this.$message.warning('杈撳叆鍊间笉鑳戒负绌�')
         return;
       }
-
-        this.tableData = this.tableData.filter(item => {
+        this.tableData = this.searchResults.filter(item => {
         if (typeof item.name === 'string') {
           return item.name.includes(this.WupinFindValue);
         }else {
           return false; // item.name涓嶆槸瀛楃涓茬被鍨嬶紝杩斿洖false
         }
-
       });
-      console.log(this.searchResults);
-
     }
 
   }

--
Gitblit v1.9.3