From 145a6eb83133497b3863add21610ac6015e6533e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 13 五月 2021 18:33:34 +0800
Subject: [PATCH] 2021-05-13

---
 src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx |   28 ++++++++++------------------
 1 files changed, 10 insertions(+), 18 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
index 7fdb7a9..21c83bb 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -8,11 +8,14 @@
  * @param {object} card       // 鍥捐〃瀵硅薄
  */
 export function getBaseForm (card) {
-  let isApp = sessionStorage.getItem('appType') === 'pc'
+  let appType = sessionStorage.getItem('appType')
   let menulist = null
 
-  if (isApp) {
+  if (appType === 'pc' || appType === 'mob') {
     menulist = sessionStorage.getItem('appMenus')
+    if (Array.isArray(card.linkmenu)) {
+      card.linkmenu = ''
+    }
   } else {
     menulist = sessionStorage.getItem('fstMenuList')
   }
@@ -20,7 +23,7 @@
   if (menulist) {
     try {
       menulist = JSON.parse(menulist)
-      if (isApp) {
+      if (appType === 'pc' || appType === 'mob') {
         menulist = menulist.map(item => {
           item.value = item.MenuID
           item.text = item.MenuName
@@ -98,7 +101,7 @@
       initVal: card.linkmenu || [],
       tooltip: '鍦ㄤ娇鐢ㄦ煴褰㈠浘涓旀湭鍚敤鑷畾涔夎缃椂鏈夋晥銆�',
       required: false,
-      forbid: isApp,
+      forbid: appType === 'pc' || appType === 'mob',
       options: menulist
     },
     {
@@ -108,7 +111,7 @@
       initVal: card.linkmenu || '',
       tooltip: '鍙屽嚮楗煎浘锛屼細鎵撳紑鍏宠仈鐨勮彍鍗曘��',
       required: false,
-      forbid: !isApp,
+      forbid: !(appType === 'pc' || appType === 'mob'),
       options: menulist
     },
     {
@@ -117,7 +120,7 @@
       label: '鎵撳紑鏂瑰紡',
       initVal: card.open || 'blank',
       required: false,
-      forbid: !isApp,
+      forbid: !(appType === 'pc' || appType === 'mob'),
       options: [
         { value: 'blank', text: '鏂扮獥鍙�' },
         { value: 'self', text: '褰撳墠绐楀彛' }
@@ -165,7 +168,7 @@
       key: 'datatype',
       label: '鏁版嵁绫诲瀷',
       initVal: card.datatype || 'query',
-      tooltip: '缁熻鍥捐〃閫傜敤浜庤〃鏍间笉鍒嗛〉锛屼笖鏁版嵁闇�瑕佽浆鎹�',
+      tooltip: '缁熻鍥捐〃閫傜敤浜庡睍绀烘暟鎹被鍨嬩负鍔ㄦ�佸�笺��',
       required: false,
       options: [
         { value: 'query', text: Formdict['header.form.query'] },
@@ -352,17 +355,6 @@
         value: 'polar',
         text: '鏋佸潗鏍�'
       }]
-    }, {
-      type: 'number',
-      key: 'InfoDefNumber',
-      label: '灞曠ず鏁�',
-      tooltip: '榛樿鏄剧ず绫诲瀷鏁伴噺',
-      min: 1,
-      max: 50,
-      decimal: 0,
-      initVal: card.InfoDefNumber || 5,
-      hidden: card.datatype !== 'statistics',
-      required: true
     }, {
       type: 'number',
       key: 'barSize',

--
Gitblit v1.8.0