From 720e0926fa1c94b952c26e111206c5d6e1ed5ba2 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期二, 21 四月 2026 15:59:49 +0800
Subject: [PATCH] Merge branch 'master' of http://47.97.1.152:5880/r/zy-wcs-master

---
 src/main/webapp/static/js/apiLog/apiLog.js |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/apiLog/apiLog.js b/src/main/webapp/static/js/apiLog/apiLog.js
index d967227..44d4106 100644
--- a/src/main/webapp/static/js/apiLog/apiLog.js
+++ b/src/main/webapp/static/js/apiLog/apiLog.js
@@ -138,6 +138,8 @@
         kind: 'text',
         valueType: 'string',
         required: false,
+        searchable: true,
+        quickSearch: true,
         primaryKey: false,
         sortable: false,
         textarea: true,
@@ -156,6 +158,8 @@
         kind: 'text',
         valueType: 'string',
         required: false,
+        searchable: true,
+        quickSearch: true,
         primaryKey: false,
         sortable: false,
         textarea: true,
@@ -1147,7 +1151,7 @@
     }
 
     function isSearchableField(field) {
-        return !!field && field.kind !== 'image' && !field.textarea;
+        return !!field && field.kind !== 'image' && (field.searchable === true || !field.textarea);
     }
 
     function isSortableField(field) {
@@ -1508,6 +1512,15 @@
                         }
                         result.push(field);
                     });
+                    this.searchableFields.forEach(function (field) {
+                        if (field.kind === 'date' || !field.quickSearch) {
+                            return;
+                        }
+                        if (result.some(function (item) { return item.field === field.field; })) {
+                            return;
+                        }
+                        result.push(field);
+                    });
                     return result;
                 },
                 advancedSearchableFields: function () {

--
Gitblit v1.9.1