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/mob/components/menubar/normal-menubar/options.jsx |   62 ++++++++++++++++++++++--------
 1 files changed, 45 insertions(+), 17 deletions(-)

diff --git a/src/mob/components/menubar/normal-menubar/options.jsx b/src/mob/components/menubar/normal-menubar/options.jsx
index 54a7cc3..6415abb 100644
--- a/src/mob/components/menubar/normal-menubar/options.jsx
+++ b/src/mob/components/menubar/normal-menubar/options.jsx
@@ -2,18 +2,6 @@
  * @description Wrap琛ㄥ崟閰嶇疆淇℃伅
  */
 export default function (wrap) {
-  let roleList = sessionStorage.getItem('sysRoles')
-
-  if (roleList) {
-    try {
-      roleList = JSON.parse(roleList)
-    } catch {
-      roleList = []
-    }
-  } else {
-    roleList = []
-  }
-
   const menuWrapForm = [
     {
       type: 'text',
@@ -42,12 +30,52 @@
       required: true
     },
     {
-      type: 'multiselect',
-      field: 'blacklist',
-      label: '榛戝悕鍗�',
-      initval: wrap.blacklist || [],
+      type: 'radio',
+      field: 'datatype',
+      label: '鏁版嵁鏉ユ簮',
+      initval: wrap.datatype || 'static',
+      tooltip: '閫夋嫨闈欐�佸�硷紝鏃犻渶閰嶇疆鏁版嵁婧愩��',
       required: false,
-      options: roleList
+      options: [
+        {value: 'dynamic', label: '鍔ㄦ��'},
+        {value: 'static', label: '闈欐��'},
+      ]
+    },
+    {
+      type: 'radio',
+      field: 'layout',
+      label: '鑿滃崟甯冨眬',
+      initval: wrap.layout || 'grid',
+      required: false,
+      options: [
+        {value: 'grid', label: '鏍呮牸'},
+        {value: 'vertical', label: '涓婁笅'},
+        {value: 'flex', label: '寮规��'},
+      ]
+    },
+    {
+      type: 'radio',
+      field: 'common',
+      label: '甯哥敤',
+      initval: wrap.common || 'true',
+      tooltip: '褰撳墠鑿滃崟缁勪腑鐨勮彍鍗曟槸鍚﹀彲娣诲姞鑷冲父鐢ㄨ彍鍗曠粍銆�',
+      required: false,
+      options: [
+        {value: 'true', label: '鍙坊鍔�'},
+        {value: 'false', label: '涓嶅彲娣诲姞'},
+      ]
+    },
+    {
+      type: 'radio',
+      field: 'permission',
+      label: '鏉冮檺楠岃瘉',
+      initval: wrap.permission || 'false',
+      required: false,
+      options: [
+        {value: 'true', label: '鍚敤'},
+        {value: 'false', label: '绂佺敤'},
+      ],
+      forbid: sessionStorage.getItem('editMenuType') === 'popview'
     },
   ]
 

--
Gitblit v1.8.0