From 2cb09105d702ccae0644126ca6ea7f85e1f218bc Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 10 十二月 2021 14:06:14 +0800
Subject: [PATCH] 2021-12-10

---
 src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx |   39 ++++++---------------------------------
 1 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
index f6a8420..5be7778 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -8,35 +8,7 @@
  * @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 (e) {
-  //     menulist = []
-  //   }
-  // } else {
-  //   menulist = []
-  // }
-
+  let appType = sessionStorage.getItem('appType')
   let roleList = sessionStorage.getItem('sysRoles')
   if (roleList) {
     try {
@@ -92,7 +64,8 @@
       initVal: card.blacklist || [],
       multi: true,
       required: false,
-      options: roleList
+      options: roleList,
+      forbid: !!appType
     },
     // {
     //   type: 'cascader',
@@ -194,8 +167,8 @@
       tooltip: '缁熻鍥捐〃閫傜敤浜庡睍绀烘暟鎹被鍨嬩负鍔ㄦ�佸�笺��',
       required: false,
       options: [
-        { value: 'query', text: Formdict['header.form.query'] },
-        { value: 'statistics', text: Formdict['header.form.statistics'] }
+        { value: 'query', text: '鏌ヨ' },
+        { value: 'statistics', text: '缁熻' }
       ]
     }, {
       type: 'select',
@@ -487,7 +460,7 @@
       key: 'selectColor',
       label: '閫変腑棰滆壊',
       initVal: card.selectColor || '',
-      tooltip: '閫変腑鏌卞舰鍥剧殑棰滆壊锛屽湪浜や簰鏁堟灉銆婂厓绱犻�変腑锛堝閫夛級銆嬪拰銆婂厓绱犻�変腑锛堝崟閫夛級銆嬩腑鏈夋晥锛岃嚜瀹氫箟璁剧疆涓棤鏁堛��',
+      tooltip: '閫変腑鏌卞舰鍥剧殑棰滆壊锛屽湪浜や簰鏁堟灉銆婂厓绱犻�変腑锛堝閫夛級銆嬪拰銆婂厓绱犻�変腑锛堝崟閫夛級銆嬩腑鏈夋晥锛屽惎鐢ㄨ嚜瀹氫箟璁剧疆鏃舵棤鏁堛��',
       forbid: !['bar'].includes(card.chartType),
       allowClear: true,
       required: false

--
Gitblit v1.8.0