From 21167ece56edd628e6f6546d1d642947cc3a048f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 12 八月 2024 22:17:33 +0800 Subject: [PATCH] 2024-08-12 --- src/menu/components/calendar/options.jsx | 40 ++++++++++++++++++++++++++++++++++++---- 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/menu/components/calendar/options.jsx b/src/menu/components/calendar/options.jsx index 56d1e4f..c581ef8 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', @@ -165,6 +195,7 @@ label: '棰滆壊鏍囪瘑', initval: wrap.signs || [], required: false, + actions: ['edit', 'del', 'add', 'move'], span: 24, columns: [ { @@ -194,7 +225,8 @@ initval: wrap.menus || [], required: true, span: 24, - actions: ['view'], + actions: ['edit', 'del', 'add', 'move', 'view'], + forbid: isprint, columns: [ { title: '鏍囪瘑', -- Gitblit v1.8.0