From 89943640ac6194ee8e4f3e72d6245a5c8c18fea4 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 07 一月 2021 19:38:21 +0800
Subject: [PATCH] 2021-01-07

---
 src/tabviews/commontable/index.jsx |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/commontable/index.jsx b/src/tabviews/commontable/index.jsx
index a6d155d..293205f 100644
--- a/src/tabviews/commontable/index.jsx
+++ b/src/tabviews/commontable/index.jsx
@@ -52,7 +52,7 @@
     columns: null,        // 鏄剧ず鍒�
     arr_field: '',        // 浣跨敤 sPC_Get_TableData 鏃剁殑鏌ヨ瀛楁闆�
     setting: null,        // 椤甸潰鍏ㄥ眬璁剧疆锛氭暟鎹簮銆佹寜閽強鏄剧ず鍒楀浐瀹氥�佷富閿瓑
-    data: null,           // 鍒楄〃鏁版嵁闆�
+    data: [],             // 鍒楄〃鏁版嵁闆�
     selectedData: [],     // 宸查�夎〃鏍兼暟鎹�
     total: 0,             // 鎬绘暟
     loading: false,       // 鍒楄〃鏁版嵁鍔犺浇涓�
@@ -941,7 +941,7 @@
         {searchlist && searchlist.length ?
           <MainSearch BID={BID} searchlist={searchlist} menuType={this.props.menuType} refreshdata={this.refreshbysearch}/> : null
         }
-        {setting && setting.onload !== 'false' ? <Row className="chart-view" gutter={16}>
+        {setting ? <Row className="chart-view" gutter={16}>
           {/* 瑙嗗浘缁� */}
           {!config.expand ? <Tabs activeKey={chartId} onChange={this.changeChart}>
             {config.charts.map(item => (
@@ -1037,8 +1037,7 @@
             }
           })}
         </Row> : null }
-        {setting && setting.onload !== 'false' &&
-          config.tabgroups.map(group => (
+        {setting && config.tabgroups.map(group => (
             <Tabs key={group.uuid} onChange={(key) => this.setState({tabActive: {...tabActive, [group.uuid]: key}})}>
               {group.sublist.map(_tab => {
                 return (

--
Gitblit v1.8.0