From 31ec63f0419895876cbaba99637a884a32d33d0d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 01 九月 2021 10:31:45 +0800
Subject: [PATCH] 2021-09-01

---
 src/tabviews/zshare/chartcomponent/index.jsx |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/tabviews/zshare/chartcomponent/index.jsx b/src/tabviews/zshare/chartcomponent/index.jsx
index 65a9f92..231654d 100644
--- a/src/tabviews/zshare/chartcomponent/index.jsx
+++ b/src/tabviews/zshare/chartcomponent/index.jsx
@@ -18,16 +18,14 @@
   static propTpyes = {
     BID: PropTypes.any,              // 鐖剁骇Id
     Tab: PropTypes.any,              // 鏍囩淇℃伅
-    MenuName: PropTypes.any,         // 鑿滃崟鍚嶇О
     plot: PropTypes.object,          // 鍥炬爣璁剧疆淇℃伅
     data: PropTypes.array,           // 鍥捐〃浼犲叆鏁版嵁
     loading: PropTypes.bool,         // 鏁版嵁鍔犺浇涓�
     config: PropTypes.object,        // 椤甸潰閰嶇疆淇℃伅
-    getexceloutparam: PropTypes.func // 鑾峰彇excel瀵煎嚭鍙傛暟
   }
 
   state = {
-    dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, // 瀛楀吀
+    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, // 瀛楀吀
     empty: true,               // 鍥捐〃鏁版嵁涓虹┖
     actions: [],               // 鍥捐〃缁戝畾鐨勬寜閽粍
     chartId: Utils.getuuid(),  // 鍥捐〃Id
@@ -80,7 +78,7 @@
               percentFields.push(_column.label)
             }
           })
-        } catch {
+        } catch (e) {
           console.warn('Incorrect percentage setting')
         }
       }
@@ -1058,7 +1056,7 @@
   }
 
   render() {
-    const { plot, loading, config, BID, Tab, MenuName } = this.props
+    const { plot, loading, config, BID, Tab } = this.props
     const { empty, chartFields, selectFields, actions } = this.state
 
     return (
@@ -1092,10 +1090,7 @@
                     Tab={Tab}
                     btn={item}
                     show="icon"
-                    MenuName={MenuName}
                     setting={config.setting}
-                    getexceloutparam={this.props.getexceloutparam}
-                    updateStatus={() => {}}
                   />
                 )
               } else {
@@ -1106,9 +1101,7 @@
                     Tab={Tab}
                     btn={item}
                     show="icon"
-                    MenuName={MenuName}
                     setting={config.setting}
-                    updateStatus={() => {}}
                   />
                 )
               }

--
Gitblit v1.8.0