From 9ee3d1f9a09a865188baffdffb85f6ad329c7b09 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 19 十二月 2021 01:09:20 +0800
Subject: [PATCH] 2021-12-19

---
 src/mob/components/search/single-search/options.jsx |   49 ++++++++++++++++++-------------------------------
 1 files changed, 18 insertions(+), 31 deletions(-)

diff --git a/src/mob/components/search/single-search/options.jsx b/src/mob/components/search/single-search/options.jsx
index dc3f06e..843e3ef 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',
@@ -54,34 +41,34 @@
       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 || [],
-      required: false,
-      options: roleList,
-      forbid: !!appType
-    },
+      type: 'number',
+      field: 'borderRadius',
+      label: '鍦嗚',
+      min: 0,
+      max: 500,
+      precision: 0,
+      initval: wrap.borderRadius || 0,
+      required: false
+    }
   ]
 
   return wrapForm

--
Gitblit v1.8.0