From f3d4db769ba9b51b799d981511a710fd443d0e08 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 21 四月 2025 12:18:03 +0800
Subject: [PATCH] Merge branch 'master' into positec

---
 src/mob/components/search/single-search/options.jsx |  109 ++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 80 insertions(+), 29 deletions(-)

diff --git a/src/mob/components/search/single-search/options.jsx b/src/mob/components/search/single-search/options.jsx
index dc3f06e..f5a51e3 100644
--- a/src/mob/components/search/single-search/options.jsx
+++ b/src/mob/components/search/single-search/options.jsx
@@ -1,20 +1,7 @@
 /**
  * @description Wrap琛ㄥ崟閰嶇疆淇℃伅
  */
-export default function (wrap, action = []) {
-  let roleList = sessionStorage.getItem('sysRoles')
-  let appType = sessionStorage.getItem('appType')
-
-  if (roleList) {
-    try {
-      roleList = JSON.parse(roleList)
-    } catch (e) {
-      roleList = []
-    }
-  } else {
-    roleList = []
-  }
-
+export default function (wrap) {
   const wrapForm = [
     {
       type: 'text',
@@ -51,36 +38,100 @@
       required: false
     },
     {
+      type: 'text',
+      field: 'initval',
+      label: '鍒濆鍊�',
+      initval: wrap.initval || '',
+      tooltip: '鍙娇鐢ˊusername@銆丂fullName@',
+      required: false
+    },
+    {
+      type: 'radio',
+      field: 'focus',
+      label: '鑷姩鑱氱劍',
+      initval: wrap.focus || 'false',
+      tooltip: '娉細ios绯荤粺涓棤鏁堛��',
+      required: false,
+      options: [
+        {value: 'true', label: '鏄�'},
+        {value: 'false', label: '鍚�'},
+      ]
+    },
+    {
+      type: 'radio',
+      field: 'required',
+      label: '蹇呭~',
+      initval: wrap.required || 'false',
+      required: false,
+      options: [
+        {value: 'true', label: '鏄�'},
+        {value: 'false', label: '鍚�'},
+      ]
+    },
+    {
+      type: 'radio',
+      field: 'match',
+      label: '鍖归厤鏂瑰紡',
+      initval: wrap.match || 'like',
+      required: true,
+      options: [
+        {value: 'like', label: 'like'},
+        {value: 'not like', label: 'not like'},
+        {value: '=', label: '='},
+      ]
+    },
+    {
       type: 'radio',
       field: 'show',
       label: '鎼滅储鏍峰紡',
-      initval: wrap.show || 'button',
+      initval: wrap.show || 'text',
       required: false,
       options: [
-        {value: 'button', label: '鎼滅储鎸夐挳'},
-        {value: 'icon', label: '鎼滅储鍥炬爣'},
-        {value: 'input', label: '杈撳叆妗�'},
+        {value: 'text', label: '鏂囧瓧'},
+        {value: 'icon', label: '鍥炬爣'},
       ]
     },
     {
       type: 'radio',
-      field: 'show',
-      label: '鎼滅储鎸夐挳',
-      initval: wrap.show || 'true',
+      field: 'scan',
+      label: '鎵爜',
+      initval: wrap.scan || 'hidden',
       required: false,
       options: [
-        {value: 'true', label: '鏄剧ず'},
-        {value: 'false', label: '闅愯棌'},
+        {value: 'hidden', label: '闅愯棌'},
+        {value: 'show', label: '鏄剧ず'},
       ]
     },
     {
-      type: 'multiselect',
-      field: 'blacklist',
-      label: '榛戝悕鍗�',
-      initval: wrap.blacklist || [],
+      type: 'number',
+      field: 'borderRadius',
+      label: '鍦嗚',
+      min: 0,
+      max: 500,
+      precision: 0,
+      initval: wrap.borderRadius || 0,
+      required: false
+    },
+    {
+      type: 'number',
+      field: 'height',
+      label: '楂樺害',
+      min: 28,
+      max: 150,
+      precision: 0,
+      initval: wrap.height || 32,
+      required: false
+    },
+    {
+      type: 'radio',
+      field: 'permission',
+      label: '鏉冮檺楠岃瘉',
+      initval: wrap.permission || 'false',
       required: false,
-      options: roleList,
-      forbid: !!appType
+      options: [
+        {value: 'true', label: '鍚敤'},
+        {value: 'false', label: '绂佺敤'},
+      ]
     },
   ]
 

--
Gitblit v1.8.0