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/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