From 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 12 十二月 2023 21:05:37 +0800 Subject: [PATCH] 2023-12-12 --- src/menu/components/calendar/options.jsx | 37 ++++++++++++++++++++++++++++++++++--- 1 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/menu/components/calendar/options.jsx b/src/menu/components/calendar/options.jsx index 56d1e4f..f7ae8e9 100644 --- a/src/menu/components/calendar/options.jsx +++ b/src/menu/components/calendar/options.jsx @@ -5,6 +5,8 @@ export default function (wrap, columns) { let roleList = sessionStorage.getItem('sysRoles') let appType = sessionStorage.getItem('appType') + let isprint = sessionStorage.getItem('MenuType') === 'billPrint' + let ispop = sessionStorage.getItem('editMenuType') === 'popview' if (roleList) { try { @@ -110,10 +112,35 @@ initval: wrap.permission || (!appType ? 'true' : 'false'), required: false, options: [ + {value: 'true', label: !appType ? '缁ф壙鑿滃崟' : '鍚敤'}, + {value: 'false', label: '绂佺敤'}, + ], + forbid: ispop || isprint + }, + { + type: 'radio', + field: 'cacheLocal', + label: '鏈湴缂撳瓨', + initval: wrap.cacheLocal || 'true', + required: false, + options: [ + {value: 'true', label: '缁ф壙鑿滃崟'}, + {value: 'false', label: '绂佺敤'}, + ], + forbid: ispop || isprint + }, + { + type: 'radio', + field: 'cacheSearch', + label: '鎼滅储缂撳瓨', + initval: wrap.cacheSearch || 'false', + tooltip: '鍚敤鎼滅储鏉′欢缂撳瓨鍚庯紝鍦ㄨ彍鍗曞埛鏂版椂鎼滅储鏉′欢涓嶅彉銆�', + required: false, + options: [ {value: 'true', label: '鍚敤'}, {value: 'false', label: '绂佺敤'}, ], - forbid: sessionStorage.getItem('editMenuType') === 'popview' + forbid: !!appType || isprint }, { type: 'radio', @@ -131,7 +158,8 @@ {field: 'menu', values: ['menu']}, {field: 'menuType', values: ['menus']}, {field: 'menus', values: ['menus']}, - ] + ], + forbid: isprint }, { type: 'select', @@ -140,6 +168,7 @@ initval: wrap.menuType || '', required: true, options: columns, + forbid: isprint }, { type: 'cascader', @@ -149,6 +178,7 @@ required: true, extendName: 'MenuNo', options: menulist, + forbid: isprint }, { type: 'multiselect', @@ -157,7 +187,7 @@ initval: wrap.blacklist || [], required: false, options: roleList, - forbid: !!appType + forbid: !!appType || isprint }, { type: 'table', @@ -195,6 +225,7 @@ required: true, span: 24, actions: ['view'], + forbid: isprint, columns: [ { title: '鏍囪瘑', -- Gitblit v1.8.0