From da64ab0923bf8817fc8599a6e37b953ce38f64c8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 27 八月 2023 18:37:36 +0800
Subject: [PATCH] 2023-08-27

---
 src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx |   77 +++++++++++++++++++++++++++++---------
 1 files changed, 58 insertions(+), 19 deletions(-)

diff --git a/src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx
index 39827f8..f3ef986 100644
--- a/src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx
@@ -1,3 +1,6 @@
+
+import MenuUtils from '@/utils/utils-custom.js'
+
 /**
  * @description 鑾峰彇鍥捐〃瑙嗗浘閰嶇疆琛ㄥ崟
  * @param {object} card       // 鍥捐〃瀵硅薄
@@ -107,6 +110,7 @@
       required: false,
       options: [
         {value: '', label: '鏃�'},
+        {value: 'switch', label: '鏁版嵁鍒囨崲'},
         {value: 'menu', label: '鑿滃崟'},
         {value: 'menus', label: '鑿滃崟缁�'}
       ],
@@ -115,7 +119,6 @@
         {field: 'menus', values: ['menus']},
         {field: 'menuType', values: ['menus']},
         {field: 'open', values: ['menu', 'menus']},
-        {field: 'joint', values: ['menu', 'menus']},
       ]
     },
     {
@@ -146,17 +149,6 @@
         {value: 'self', label: '褰撳墠绐楀彛'},
       ],
       forbid: appType !== 'pc'
-    },
-    {
-      type: 'radio',
-      field: 'joint',
-      label: '鍙傛暟鎷兼帴',
-      initval: card.joint || 'true',
-      required: false,
-      options: [
-        {value: 'true', label: '鏄�'},
-        {value: 'false', label: '鍚�'},
-      ],
     },
     {
       type: 'table',
@@ -197,24 +189,71 @@
  * @param {object} card       // 鍥捐〃瀵硅薄
  * @param {Array}  columns    // 鏄剧ず鍒�
  */
-export function getOptionForm (card, columns) {
+export function getOptionForm (card, uuid) {
+  let menu = window.GLOB.customMenu
+  let modules = MenuUtils.getSupModules(menu.components, uuid, menu.interfaces)
+
   return [
     {
       type: 'select',
       field: 'subtype',
-      label: '绫诲瀷',
+      label: '鍥捐〃绫诲瀷',
       initval: card.subtype || 'xflow',
       required: true,
       options: [{
         value: 'xflow',
         label: '娴佺▼鍥�'
       }, {
-        value: 'indentTree',
+        value: 'lane',
         label: '娉抽亾鍥�'
-      }, {
-        value: 'kapmap',
-        label: '缁勭粐缁撴瀯鍥�'
-      }]
+      }],
+      controlFields: [
+        {field: 'gridType', values: ['xflow']},
+        {field: 'backgroundColor', values: ['xflow']}
+      ],
+    },
+    {
+      type: 'radio',
+      field: 'function',
+      label: '鍔熻兘',
+      initval: card.function || 'show',
+      required: true,
+      options: [
+        {value: 'edit', label: '娴佺▼缂栬緫'},
+        {value: 'show', label: '娴佺▼灞曠ず'},
+      ],
+      controlFields: [
+        {field: 'empty', values: ['show']}
+      ]
+    },
+    {
+      type: 'cascader',
+      field: 'supModule',
+      label: '涓婄骇缁勪欢',
+      initval: card.supModule || [],
+      required: false,
+      options: modules,
+      allowClear: true
+    },
+    {
+      type: 'radio',
+      field: 'gridType',
+      label: '缃戞牸',
+      initval: card.gridType || 'none',
+      required: false,
+      options: [
+        {value: 'none', label: '鏃�'},
+        {value: 'dot', label: '鐐圭姸缃戞牸'},
+        {value: 'mesh', label: '缃戠姸缃戞牸'}
+      ],
+    },
+    {
+      type: 'color',
+      field: 'backgroundColor',
+      label: '鑳屾櫙鑹�',
+      initval: card.backgroundColor || '',
+      required: false,
+      allowClear: true
     },
     {
       type: 'radio',

--
Gitblit v1.8.0