From 669839c40c0080786cefa6a8e62d3ada68a39b8e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 14 六月 2022 14:10:50 +0800
Subject: [PATCH] 2022-06-14

---
 src/menu/components/form/normal-form/options.jsx |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/menu/components/form/normal-form/options.jsx b/src/menu/components/form/normal-form/options.jsx
index 412d523..fa3eb97 100644
--- a/src/menu/components/form/normal-form/options.jsx
+++ b/src/menu/components/form/normal-form/options.jsx
@@ -1,3 +1,6 @@
+import { fromJS } from 'immutable'
+import MenuUtils from '@/utils/utils-custom.js'
+
 /**
  * @description Wrap琛ㄥ崟閰嶇疆淇℃伅
  */
@@ -15,6 +18,10 @@
   } else {
     roleList = []
   }
+
+  let modules = []
+  let menu = fromJS(window.GLOB.customMenu).toJS()
+  modules = MenuUtils.getSupModules(menu.components, config.uuid) || []
 
   const wrapForm = [
     {
@@ -46,6 +53,9 @@
       options: [
         {value: 'dynamic', label: '鍔ㄦ��'},
         {value: 'static', label: '闈欐��'},
+      ],
+      controlFields: [
+        {field: 'supModule', values: ['static']},
       ]
     },
     {
@@ -104,6 +114,15 @@
       forbid: !appType
     },
     {
+      type: 'cascader',
+      field: 'supModule',
+      label: '涓婄骇缁勪欢',
+      initval: wrap.supModule || [],
+      required: false,
+      options: modules,
+      allowClear: true
+    },
+    {
       type: 'multiselect',
       field: 'blacklist',
       label: '榛戝悕鍗�',

--
Gitblit v1.8.0