From dcd660c86dba586c1b78c0530ddee7c1dc093ee6 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 25 四月 2024 17:51:15 +0800
Subject: [PATCH] 2024-04-25

---
 src/menu/components/group/normal-group/options.jsx |  131 +++++++++++++++++++++++++++++++++----------
 1 files changed, 101 insertions(+), 30 deletions(-)

diff --git a/src/menu/components/group/normal-group/options.jsx b/src/menu/components/group/normal-group/options.jsx
index fcaca1a..521a003 100644
--- a/src/menu/components/group/normal-group/options.jsx
+++ b/src/menu/components/group/normal-group/options.jsx
@@ -18,6 +18,13 @@
   const settingForm = [
     {
       type: 'text',
+      field: 'title',
+      label: '鏍囬',
+      initval: setting.title || '',
+      required: false
+    },
+    {
+      type: 'text',
       field: 'name',
       label: '缁勪欢鍚嶇О',
       initval: setting.name || '',
@@ -35,47 +42,111 @@
       precision: 0,
       required: true
     },
+    // {
+    //   type: 'radio',
+    //   field: 'print',
+    //   label: '鎵撳嵃鎸夐挳',
+    //   initval: setting.print || 'false',
+    //   required: false,
+    //   options: [
+    //     {value: 'true', label: '鏄剧ず'},
+    //     {value: 'false', label: '闅愯棌'},
+    //   ],
+    //   controlFields: [
+    //     {field: 'pageSize', values: ['true']},
+    //     {field: 'pageLayout', values: ['true']},
+    //     {field: 'hide', values: ['true']},
+    //   ],
+    //   forbid: appType === 'mob'
+    // },
+    // {
+    //   type: 'radio',
+    //   field: 'pageSize',
+    //   label: '鎵撳嵃灏哄',
+    //   initval: setting.pageSize || 'A4',
+    //   required: true,
+    //   options: [
+    //     {value: 'A3', label: 'A3'},
+    //     {value: 'A4', label: 'A4'},
+    //     {value: 'A5', label: 'A5'},
+    //   ],
+    //   forbid: appType === 'mob'
+    // },
+    // {
+    //   type: 'radio',
+    //   field: 'pageLayout',
+    //   label: '鎵撳嵃甯冨眬',
+    //   initval: setting.pageLayout || 'vertical',
+    //   required: true,
+    //   options: [
+    //     {value: 'vertical', label: '绾靛悜'},
+    //     {value: 'horizontal', label: '妯悜'},
+    //   ],
+    //   forbid: appType === 'mob'
+    // },
+    // {
+    //   type: 'checkbox',
+    //   field: 'hide',
+    //   label: '闅愯棌鍏冪礌',
+    //   initval: setting.hide || [],
+    //   tooltip: '鎵ц鎵撳嵃鏃堕渶瑕侀殣钘忕殑椤甸潰鍏冪礌銆�',
+    //   required: false,
+    //   options: [
+    //     {value: 'search', label: '鎼滅储'},
+    //     {value: 'button', label: '鎸夐挳'},
+    //   ],
+    //   forbid: appType === 'mob'
+    // },
     {
       type: 'radio',
-      field: 'print',
-      label: '鎵撳嵃鎸夐挳',
-      initval: setting.print || 'false',
+      field: 'permission',
+      label: '鏉冮檺楠岃瘉',
+      initval: setting.permission || 'false',
       required: false,
       options: [
-        {value: 'true', label: '鏄剧ず'},
-        {value: 'false', label: '闅愯棌'},
+        {value: 'true', label: '鍚敤'},
+        {value: 'false', label: '绂佺敤'},
+      ],
+      forbid: !appType || sessionStorage.getItem('editMenuType') === 'popview'
+    },
+    {
+      type: 'radio',
+      field: 'layout',
+      label: '鍏冪礌甯冨眬',
+      initval: setting.layout || 'grid',
+      tooltip: '鍒嗙粍涓厓绱犵殑鎺掑垪鏂瑰紡',
+      required: false,
+      options: [
+        {value: 'grid', label: '鏍呮牸甯冨眬'},
+        {value: 'flex', label: '寮规�у竷灞�'},
+      ]
+    },
+    {
+      type: 'radio',
+      field: 'mergeAble',
+      label: '灞曞紑/鏀惰捣',
+      initval: setting.mergeAble || 'false',
+      tooltip: '鍚敤鏃讹紝缁勪欢鍙充笂瑙掑皢鍑虹幇灞曞紑/鏀惰捣鐨勫浘鏍囷紝鍙皢褰撳墠缁勪欢灞曞紑鎴栨敹璧枫��',
+      required: false,
+      options: [
+        {value: 'true', label: '鍚敤'},
+        {value: 'false', label: '绂佺敤'},
       ],
       controlFields: [
-        {field: 'pageSize', values: ['true']},
-        {field: 'pageLayout', values: ['true']},
-        {field: 'syncModule', values: ['true']},
-        {field: 'checkAll', values: ['true']},
+        {field: 'ctrlNumber', values: ['true']},
       ],
       forbid: appType === 'mob'
     },
     {
-      type: 'radio',
-      field: 'pageSize',
-      label: '鎵撳嵃灏哄',
-      initval: setting.pageSize || 'A4',
+      type: 'number',
+      field: 'ctrlNumber',
+      label: '鎺у埗鏁�',
+      initval: setting.ctrlNumber || 1,
+      tooltip: '褰撶粍浠舵敹璧锋椂锛屽叾鍚庨渶瑕佸睍寮�鐨勭粍浠舵暟銆�',
+      min: 1,
+      max: 5,
+      precision: 0,
       required: true,
-      options: [
-        {value: 'A3', label: 'A3'},
-        {value: 'A4', label: 'A4'},
-        {value: 'A5', label: 'A5'},
-      ],
-      forbid: appType === 'mob'
-    },
-    {
-      type: 'radio',
-      field: 'pageLayout',
-      label: '鎵撳嵃甯冨眬',
-      initval: setting.pageLayout || 'vertical',
-      required: true,
-      options: [
-        {value: 'vertical', label: '绾靛悜'},
-        {value: 'horizontal', label: '妯悜'},
-      ],
       forbid: appType === 'mob'
     },
     {

--
Gitblit v1.8.0