From f7d1f17bdcb8c3e794a798165737bb7529dbe8ca Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 三月 2020 12:15:19 +0800
Subject: [PATCH] 2020-03-26

---
 src/tabviews/managetable/index.jsx |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/src/tabviews/managetable/index.jsx b/src/tabviews/managetable/index.jsx
index 86ec7d4..cb4e2b7 100644
--- a/src/tabviews/managetable/index.jsx
+++ b/src/tabviews/managetable/index.jsx
@@ -15,12 +15,12 @@
 import {refreshTabView, modifyTabview} from '@/store/action'
 
 import MainTable from '@/tabviews/zshare/normalTable'
-import MainAction from '@/tabviews/zshare/actionList'
 import MainSearch from '@/tabviews/zshare/topSearch'
 import NotFount from '@/components/404'
 import './index.scss'
 
 const SubTable = asyncLoadComponent(() => import('@/tabviews/subtable'))
+const MainAction = asyncComponent(() => import('@/tabviews/zshare/actionList'))
 const SubTabTable = asyncComponent(() => import('@/tabviews/subtabtable'))
 const FormTab = asyncComponent(() => import('@/tabviews/formtab'))
 
@@ -64,7 +64,8 @@
     treevisible: false,   // 鑿滃崟缁撴瀯鏍戝脊妗嗘樉绀洪殣钘忔帶鍒�
     tabBtn: null,         // 琛ㄥ崟鏍囩鎸夐挳
     tabParam: null,       // 琛ㄥ崟鏍囩鍙傛暟
-    refreshtabs: null     // 闇�瑕佸埛鏂扮殑鏍囩闆�
+    refreshtabs: null,    // 闇�瑕佸埛鏂扮殑鏍囩闆�
+    triggerBtn: null      // 鎸夐挳瑙﹀彂
   }
 
   /**
@@ -518,7 +519,15 @@
       orderBy: '',
       search: '',
       BIDs: {},
-      pickup: false
+      pickup: false,
+      popAction: false,
+      popData: false,
+      visible: false,
+      treevisible: false,
+      tabBtn: null,
+      tabParam: null,
+      refreshtabs: null,
+      triggerBtn: null
     }, () => {
       this.loadconfig()
     })
@@ -615,7 +624,14 @@
    * @description 琛ㄦ牸涓紝鎸夐挳瑙﹀彂浜嬩欢浼犻��
    */
   buttonTrigger = (btn, record) => {
-    this.refs.mainButton.actionTrigger(btn, record)
+    this.setState({
+      triggerBtn: {
+        uuid: new Date().getTime(),
+        parentId: this.props.MenuID,
+        button: btn,
+        data: record
+      }
+    })
   }
 
   /**
@@ -810,7 +826,7 @@
   }
 
   render() {
-    const { view, setting, searchlist, actions, columns, loadingview, viewlost, pickup, config } = this.state
+    const { view, setting, searchlist, actions, columns, loadingview, viewlost, pickup, config, triggerBtn } = this.state
 
     return (
       <div>
@@ -825,13 +841,13 @@
           }
           {actions && setting.onload !== 'false' ?
             <MainAction
-              ref="mainButton"
               BID=""
               type="main"
               menuType="HS"
               setting={setting}
               actions={actions}
               dict={this.state.dict}
+              triggerBtn={triggerBtn}
               MenuID={this.props.MenuID}
               logcolumns={this.state.logcolumns}
               ContainerId={this.state.ContainerId}

--
Gitblit v1.8.0