From 3ca91a731665962918a026f521c556f4745ebf35 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 16 十一月 2020 19:20:19 +0800 Subject: [PATCH] 2020-11-16 --- src/tabviews/zshare/cardcomponent/index.jsx | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/tabviews/zshare/cardcomponent/index.jsx b/src/tabviews/zshare/cardcomponent/index.jsx index d3283a3..c611f51 100644 --- a/src/tabviews/zshare/cardcomponent/index.jsx +++ b/src/tabviews/zshare/cardcomponent/index.jsx @@ -147,7 +147,7 @@ columns={logcolumns} selectedData={[data]} ContainerId={ContainerId} - updateStatus={this.updateStatus} + updateStatus={this.props.refreshdata} /> ) } else if (item.OpenType === 'popview') { @@ -161,7 +161,7 @@ BData={BData} setting={setting} selectedData={[data]} - updateStatus={this.updateStatus} + updateStatus={this.props.refreshdata} /> ) } else if (item.OpenType === 'tab' || item.OpenType === 'blank') { @@ -173,7 +173,7 @@ MenuID={MenuID} setting={setting} selectedData={[data]} - updateStatus={this.updateStatus} + updateStatus={this.props.refreshdata} /> ) } else if (item.OpenType === 'innerpage' || item.OpenType === 'outerpage') { @@ -184,7 +184,7 @@ show={show} setting={setting} selectedData={[data]} - updateStatus={this.updateStatus} + updateStatus={this.props.refreshdata} /> ) } else if (item.OpenType === 'funcbutton') { @@ -197,7 +197,7 @@ show={show} setting={setting} selectedData={[data]} - updateStatus={this.updateStatus} + updateStatus={this.props.refreshdata} /> ) } else if (item.funcType === 'print') { @@ -212,7 +212,7 @@ setting={setting} selectedData={[data]} ContainerId={ContainerId} - updateStatus={this.updateStatus} + updateStatus={this.props.refreshdata} /> ) } @@ -220,15 +220,6 @@ return null }) - } - - /** - * @description 鎿嶄綔瀹屾垚鍚庯紝鏁版嵁鍒锋柊 - */ - updateStatus = (type, positon) => { - if (type === 'refresh') { - this.props.refreshdata(positon) - } } /** @@ -511,7 +502,7 @@ columns={this.props.logcolumns} selectedData={[]} ContainerId={this.props.ContainerId} - updateStatus={this.updateStatus} + updateStatus={this.props.refreshdata} /> </div> </Card> : null} @@ -761,6 +752,15 @@ this.props.handleTableId(this.props.tableId, _id, data) } + /** + * @description 鎿嶄綔瀹屾垚鍚庯紝鏁版嵁鍒锋柊 + */ + updateStatus = (type, positon, btn) => { + if (type === 'refresh') { + this.props.refreshdata(positon, btn) + } + } + render() { const { plot, data, loading, BID, BData, Tab, MenuID, config, logcolumns, ContainerId, MenuName } = this.props const { card, colMap, selectKey, actionList } = this.state @@ -787,7 +787,7 @@ show="icon" MenuName={MenuName} setting={config.setting} - updateStatus={() => {}} + updateStatus={this.updateStatus} /> ) } else { @@ -801,7 +801,7 @@ MenuName={MenuName} setting={config.setting} getexceloutparam={this.props.getexceloutparam} - updateStatus={() => {}} + updateStatus={this.updateStatus} /> ) } @@ -826,7 +826,7 @@ setting={config.setting} ContainerId={ContainerId} switchCard={this.switchCard} - refreshdata={this.props.refreshdata} + refreshdata={this.updateStatus} /> )) } @@ -844,7 +844,7 @@ setting={config.setting} ContainerId={ContainerId} switchCard={() => {}} - refreshdata={this.props.refreshdata} + refreshdata={this.updateStatus} /> : null } {(loading || !card.insertAction) && (!data || data.length === 0) ? <Empty description={false}/> : null} -- Gitblit v1.8.0