From 010fdcf8abd58bde5c1106db8ed8448effc75b4b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 25 二月 2025 16:37:46 +0800 Subject: [PATCH] 2025-02-25 --- src/menu/components/module/account/options.jsx | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 48 insertions(+), 1 deletions(-) diff --git a/src/menu/components/module/account/options.jsx b/src/menu/components/module/account/options.jsx index 93bebd4..8faa66c 100644 --- a/src/menu/components/module/account/options.jsx +++ b/src/menu/components/module/account/options.jsx @@ -2,6 +2,17 @@ * @description Wrap琛ㄥ崟閰嶇疆淇℃伅 */ export default function (wrap) { + let menulist = sessionStorage.getItem('fstMenuList') + if (menulist) { + try { + menulist = JSON.parse(menulist) + } catch (e) { + menulist = [] + } + } else { + menulist = [] + } + const wrapForm = [ { type: 'text', @@ -21,7 +32,43 @@ max: 24, precision: 0, required: true - } + }, + { + type: 'radio', + field: 'readonly', + label: '鍙', + initval: wrap.readonly || 'false', + required: true, + options: [ + {value: 'false', label: '鍚�'}, + {value: 'true', label: '鏄�'}, + ], + controlFields: [ + {field: 'addable', values: ['false']}, + ] + }, + { + type: 'radio', + field: 'addable', + label: '鍙柊澧�', + initval: wrap.addable || 'false', + required: true, + options: [ + {value: 'false', label: '鍚�'}, + {value: 'true', label: '鏄�'}, + ], + controlFields: [ + {field: 'linkmenu', values: ['true']}, + ], + }, + { + type: 'cascader', + field: 'linkmenu', + label: '鍏宠仈鑿滃崟', + initVal: wrap.linkmenu || [], + required: true, + options: menulist + }, ] return wrapForm -- Gitblit v1.8.0