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

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

diff --git a/src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx
index 6f957df..f63fa94 100644
--- a/src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx
@@ -7,7 +7,7 @@
   if (roleList) {
     try {
       roleList = JSON.parse(roleList)
-    } catch {
+    } catch (e) {
       roleList = []
     }
   } else {
@@ -69,6 +69,7 @@
  * @param {Array}  columns    // 鏄剧ず鍒�
  */
 export function getOptionForm (card, columns) {
+  let appType = sessionStorage.getItem('appType')
   let xfields = columns.filter(item => /^Nvarchar/ig.test(item.datatype))
   let yfields = columns.filter(item => /^(Int|Decimal)/ig.test(item.datatype))
 
@@ -153,6 +154,7 @@
       initVal: card.interaction || [],
       multi: true,
       required: false,
+      forbid: appType === 'mob',
       options: [
         { value: 'element-active', label: '鍏冪礌鑱氱劍' },
         { value: 'element-selected', label: '鍏冪礌閫変腑锛堝閫夛級' },

--
Gitblit v1.8.0