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/menu/components/search/main-search/options.jsx | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/src/menu/components/search/main-search/options.jsx b/src/menu/components/search/main-search/options.jsx index 8228b2b..6d586f9 100644 --- a/src/menu/components/search/main-search/options.jsx +++ b/src/menu/components/search/main-search/options.jsx @@ -1,7 +1,8 @@ +import MenuUtils from '@/utils/utils-custom.js' /** * @description Wrap琛ㄥ崟閰嶇疆淇℃伅 */ -export default function (wrap, action = []) { +export default function (wrap, uuid) { let roleList = sessionStorage.getItem('sysRoles') let appType = sessionStorage.getItem('appType') @@ -14,6 +15,9 @@ } else { roleList = [] } + + let menu = window.GLOB.customMenu + let modules = MenuUtils.getSupModules(menu.components, uuid, menu.interfaces) const wrapForm = [ { @@ -136,10 +140,12 @@ field: 'resetContrl', label: '閲嶇疆鏃�', initval: wrap.resetContrl || 'init', + tooltip: '鍒锋柊鑿滃崟浼氭竻绌篣RL鍙橀噺銆�', required: false, options: [ {value: 'init', label: '鎭㈠鍒濆鍊�'}, {value: 'clear', label: '娓呯┖'}, + {value: 'refresh', label: '鍒锋柊鑿滃崟'}, ], }, { @@ -156,6 +162,18 @@ }, { type: 'radio', + field: 'searchSize', + label: '鎼滅储闂磋窛', + initval: wrap.searchSize || 'middle', + tooltip: '鎼滅储鏉′欢鐨勪笂涓嬮棿璺濄��', + required: false, + options: [ + {value: 'middle', label: '榛樿'}, + {value: 'small', label: '灏�'}, + ], + }, + { + type: 'radio', field: 'cacheSearch', label: '鎼滅储缂撳瓨', initval: wrap.cacheSearch || 'false', @@ -168,6 +186,16 @@ forbid: !!appType }, { + type: 'cascader', + field: 'supModule', + label: '涓婄骇缁勪欢', + initval: wrap.supModule || [], + required: false, + allowClear: true, + options: modules, + forbid: sessionStorage.getItem('editMenuType') === 'popview' + }, + { type: 'multiselect', field: 'blacklist', label: '榛戝悕鍗�', -- Gitblit v1.8.0