From ca660aed7dcdf63668c7fae2ae3dbc3f13ec1529 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 五月 2022 22:30:31 +0800 Subject: [PATCH] 2022-05-31 --- src/menu/components/form/normal-form/options.jsx | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/menu/components/form/normal-form/options.jsx b/src/menu/components/form/normal-form/options.jsx index 1d8278c..13dddcf 100644 --- a/src/menu/components/form/normal-form/options.jsx +++ b/src/menu/components/form/normal-form/options.jsx @@ -9,7 +9,7 @@ if (roleList) { try { roleList = JSON.parse(roleList) - } catch { + } catch (e) { roleList = [] } } else { @@ -92,6 +92,18 @@ forbid: config.subtype === 'tabform' }, { + type: 'radio', + field: 'permission', + label: '鏉冮檺楠岃瘉', + initval: wrap.permission || 'false', + required: false, + options: [ + {value: 'true', label: '鍚敤'}, + {value: 'false', label: '绂佺敤'}, + ], + forbid: !appType + }, + { type: 'multiselect', field: 'blacklist', label: '榛戝悕鍗�', -- Gitblit v1.8.0