From da1f62d39c6386b98545d2ac7c069420203a3437 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 11 七月 2021 22:43:08 +0800
Subject: [PATCH] 2021-07-11

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

diff --git a/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx
index 195f5b0..20a3b61 100644
--- a/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx
@@ -8,7 +8,8 @@
  * @param {object} card       // 鍥捐〃瀵硅薄
  */
 export function getBaseForm (card) {
-  let isApp = sessionStorage.getItem('appType') === 'pc'
+  let appType = sessionStorage.getItem('appType')
+  let isApp = appType === 'pc' || appType === 'mob'
   let menulist = null
 
   if (isApp) {
@@ -131,6 +132,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))
 
@@ -314,6 +316,7 @@
       initVal: card.interaction || [],
       multi: true,
       required: false,
+      forbid: appType === 'mob',
       options: [
         { value: 'element-active', label: '鍏冪礌鑱氱劍' },
         { value: 'element-selected', label: '鍏冪礌閫変腑锛堝閫夛級' },

--
Gitblit v1.8.0