From 590a8198e9fcb503aaeb04f6d550c65bf30c0566 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 11 三月 2020 18:01:06 +0800
Subject: [PATCH] 2020-03-11

---
 src/tabviews/subtabtable/index.jsx |   36 ++++++++++++++++++++----------------
 1 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/src/tabviews/subtabtable/index.jsx b/src/tabviews/subtabtable/index.jsx
index cafcb9f..23910cf 100644
--- a/src/tabviews/subtabtable/index.jsx
+++ b/src/tabviews/subtabtable/index.jsx
@@ -5,8 +5,8 @@
 import { notification, Spin} from 'antd'
 import moment from 'moment'
 import Api from '@/api'
+import asyncComponent from '@/utils/asyncComponent'
 import SubTable from '@/tabviews/subtable/subTable'
-import SubAction from '@/tabviews/tableshare/actionList'
 import SubSearch from '@/tabviews/tableshare/topSearch'
 import NotFount from '@/components/404'
 import zhCN from '@/locales/zh-CN/main.js'
@@ -14,6 +14,8 @@
 import Utils from '@/utils/utils.js'
 import options from '@/store/options.js'
 import './index.scss'
+
+const SubAction = asyncComponent(() => import('@/tabviews/tableshare/actionList'))
 
 class SubTabModalTable extends Component {
   static propTpyes = {
@@ -612,21 +614,23 @@
             dict={this.state.dict}
           /> : null
         }
-        {actions &&
-          <SubAction
-            ref="subtabButton"
-            type="subtab"
-            menuType={this.props.menuType}
-            setting={setting}
-            actions={actions}
-            BID={this.props.BID}
-            BData={this.props.BData}
-            dict={this.state.dict}
-            MenuID={this.props.SupMenuID}
-            ContainerId={this.props.ContainerId}
-            refreshdata={this.refreshbyaction}
-            gettableselected={this.gettableselected}
-          />
+        {actions ?
+          <div style={{minHeight: '45px'}}>
+            <SubAction
+              ref="subtabButton"
+              type="subtab"
+              menuType={this.props.menuType}
+              setting={setting}
+              actions={actions}
+              BID={this.props.BID}
+              BData={this.props.BData}
+              dict={this.state.dict}
+              MenuID={this.props.SupMenuID}
+              ContainerId={this.props.ContainerId}
+              refreshdata={this.refreshbyaction}
+              gettableselected={this.gettableselected}
+            />
+          </div> : null
         }
         {columns &&
           <SubTable

--
Gitblit v1.8.0