From 1da6506bf58270bacc2a4345002c6b082835580e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 21 十月 2021 23:17:08 +0800
Subject: [PATCH] 2021-10-21

---
 src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx |   35 ++++-------------------------------
 1 files changed, 4 insertions(+), 31 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
index 42099ee..f3b35e2 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -8,40 +8,12 @@
  * @param {object} card       // 鍥捐〃瀵硅薄
  */
 export function getBaseForm (card) {
-  // let appType = sessionStorage.getItem('appType')
-  // let menulist = null
-
-  // if (appType === 'pc') {
-  //   menulist = sessionStorage.getItem('appMenus')
-  //   if (Array.isArray(card.linkmenu)) {
-  //     card.linkmenu = ''
-  //   }
-  // } else {
-  //   menulist = sessionStorage.getItem('fstMenuList')
-  // }
-
-  // if (menulist) {
-  //   try {
-  //     menulist = JSON.parse(menulist)
-  //     if (appType === 'pc') {
-  //       menulist = menulist.map(item => {
-  //         item.value = item.MenuID
-  //         item.text = item.MenuName
-  //         return item
-  //       })
-  //     }
-  //   } catch {
-  //     menulist = []
-  //   }
-  // } else {
-  //   menulist = []
-  // }
-
+  let appType = sessionStorage.getItem('appType')
   let roleList = sessionStorage.getItem('sysRoles')
   if (roleList) {
     try {
       roleList = JSON.parse(roleList)
-    } catch {
+    } catch (e) {
       roleList = []
     }
   } else {
@@ -92,7 +64,8 @@
       initVal: card.blacklist || [],
       multi: true,
       required: false,
-      options: roleList
+      options: roleList,
+      forbid: !!appType
     },
     // {
     //   type: 'cascader',

--
Gitblit v1.8.0