From 0472ec32cadb4f9bca6dbab82ac33a42e76f37ed Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 28 六月 2022 16:24:15 +0800
Subject: [PATCH] 菜单栏&时间轴

---
 src/mob/components/menubar/normal-menubar/menucomponent/options.jsx |   61 +++++++++++++++++++++---------
 1 files changed, 43 insertions(+), 18 deletions(-)

diff --git a/src/mob/components/menubar/normal-menubar/menucomponent/options.jsx b/src/mob/components/menubar/normal-menubar/menucomponent/options.jsx
index f69c651..3e8bc87 100644
--- a/src/mob/components/menubar/normal-menubar/menucomponent/options.jsx
+++ b/src/mob/components/menubar/normal-menubar/menucomponent/options.jsx
@@ -1,7 +1,7 @@
 /**
  * @description Setting琛ㄥ崟閰嶇疆淇℃伅
  */
-export default function (setting) {
+export default function (setting, columns) {
   let menulist = sessionStorage.getItem('appMenus')
 
   if (menulist) {
@@ -41,7 +41,7 @@
       required: true
     },
     {
-      type: 'select',
+      type: 'radio',
       field: 'type',
       label: '鑿滃崟灞炴��',
       initval: setting.type || 'menu',
@@ -49,11 +49,9 @@
       options: [
         {value: 'menu', label: '鑿滃崟'},
         {value: 'linkmenu', label: '鍏宠仈鑿滃崟'},
-        {value: 'sysmenu', label: '绯荤粺椤�'},
         {value: 'link', label: '閾炬帴'},
       ],
       controlFields: [
-        {field: 'sysmenu', values: ['sysmenu']},
         {field: 'copyMenuId', values: ['menu']},
         {field: 'linkMenuId', values: ['linkmenu']},
         {field: 'linkurl', values: ['link']},
@@ -61,22 +59,28 @@
     },
     {
       type: 'select',
-      field: 'sysmenu',
-      label: '绯荤粺椤甸潰',
-      initval: setting.sysmenu || '',
-      required: true,
-      options: [
-        {value: 'AIService', label: '鏅鸿兘瀹㈡湇'},
-      ]
-    },
-    {
-      type: 'select',
       field: 'copyMenuId',
       label: '澶嶅埗鑿滃崟',
       initval: setting.copyMenuId || '',
-      tooltip: '澶嶅埗鑿滃崟浠呭湪褰撳墠鑿滃崟鍒濆鍖栨椂鏈夋晥銆�',
+      tooltip: '澶嶅埗鑿滃崟浠呭湪褰撳墠鑿滃崟鍒涘缓鏃舵湁鏁堛��',
       required: false,
-      options: menulist
+      options: menulist,
+      extendName: 'MenuNo',
+      controlFields: [
+        {field: 'clearMenu', notNull: true},
+      ],
+    },
+    {
+      type: 'radio',
+      field: 'clearMenu',
+      label: '娓呯┖鍏宠仈鑿滃崟',
+      initval: setting.clearMenu || 'true',
+      tooltip: '澶嶅埗鑿滃崟鏃讹紝鏄惁娓呯┖鍘熼〉闈腑鐨勫叧鑱旇彍鍗曘��',
+      required: false,
+      options: [
+        {value: 'true', label: '鏄�'},
+        {value: 'false', label: '鍚�'}
+      ]
     },
     {
       type: 'select',
@@ -84,7 +88,12 @@
       label: '鍏宠仈鑿滃崟',
       initval: setting.linkMenuId || '',
       required: true,
-      options: menulist
+      extendName: 'MenuNo',
+      options: [
+        ...menulist,
+        // {value: 'IM', label: '鍗虫椂閫氫俊锛堢郴缁熼〉锛�'},
+        {value: 'AIService', label: '鏅鸿兘瀹㈡湇锛堢郴缁熼〉锛�'}
+      ]
     },
     {
       type: 'textarea',
@@ -127,7 +136,7 @@
       label: '瀛椾綋澶у皬',
       initval: setting.iconFont || 20,
       min: 12,
-      max: 200,
+      max: 300,
       precision: 0,
       required: true
     },
@@ -140,6 +149,13 @@
       max: 200,
       precision: 0,
       required: true
+    },
+    {
+      type: 'styleInput',
+      field: 'borderRadius',
+      label: '鍦嗚',
+      initval: setting.borderRadius || '15%',
+      required: false
     },
     {
       type: 'color',
@@ -173,6 +189,15 @@
       precision: 0,
       required: false
     },
+    {
+      type: 'select',
+      field: 'tip',
+      label: '鎻愮ず',
+      initval: setting.tip || '',
+      tooltip: '缁戝畾鎻愮ず瀛楁鍚庯紝浼氬湪鑿滃崟鍙充笂瑙掓樉绀虹孩鑹叉爣璁般��',
+      required: false,
+      options: columns
+    },
   ]
 
   return menuWrapForm

--
Gitblit v1.8.0