From da7068bd48791cdee966c786ce0dfd46f6e03df9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 08 一月 2021 19:02:24 +0800 Subject: [PATCH] 2021-01-08 --- src/tabviews/zshare/actionList/index.jsx | 19 +------------------ 1 files changed, 1 insertions(+), 18 deletions(-) diff --git a/src/tabviews/zshare/actionList/index.jsx b/src/tabviews/zshare/actionList/index.jsx index e2913a1..217f87d 100644 --- a/src/tabviews/zshare/actionList/index.jsx +++ b/src/tabviews/zshare/actionList/index.jsx @@ -27,8 +27,7 @@ actions: PropTypes.array, // 鎸夐挳缁� columns: PropTypes.array, // 鏄剧ず鍒� setting: PropTypes.any, // 椤甸潰閫氱敤璁剧疆 - ContainerId: PropTypes.any, // tab椤甸潰ID锛岀敤浜庡脊绐楁帶鍒� - refreshdata: PropTypes.func, // 鎵ц瀹屾垚鍚庢暟鎹埛鏂� + ContainerId: PropTypes.any // tab椤甸潰ID锛岀敤浜庡脊绐楁帶鍒� } state = { @@ -37,14 +36,6 @@ shouldComponentUpdate (nextProps, nextState) { return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState)) - } - - updateStatus = (type, positon, btn) => { - if (type === 'refresh') { - this.props.refreshdata(positon, btn) - } else if (type === 'trigger') { // 鏃ュ巻涓殑鏂版爣绛鹃〉瑙﹀彂浜嬩欢 - this.props.refreshdata('trigger') - } } getButtonList = (actions) => { @@ -65,7 +56,6 @@ position="toolbar" ContainerId={ContainerId} selectedData={selectedData} - updateStatus={this.updateStatus} /> ) } else if (item.OpenType === 'excelIn') { @@ -79,7 +69,6 @@ setting={setting} position="toolbar" selectedData={selectedData} - updateStatus={this.updateStatus} /> ) } else if (item.OpenType === 'excelOut') { @@ -92,7 +81,6 @@ btn={item} setting={setting} position="toolbar" - updateStatus={this.updateStatus} /> ) } else if (item.OpenType === 'popview') { @@ -107,7 +95,6 @@ setting={setting} position="toolbar" selectedData={selectedData} - updateStatus={this.updateStatus} /> ) } else if (item.OpenType === 'tab' || item.OpenType === 'blank') { @@ -120,7 +107,6 @@ setting={setting} position="toolbar" selectedData={selectedData} - updateStatus={this.updateStatus} /> ) } else if (item.OpenType === 'innerpage' || item.OpenType === 'outerpage') { @@ -132,7 +118,6 @@ setting={setting} position="toolbar" selectedData={selectedData} - updateStatus={this.updateStatus} /> ) } else if (item.OpenType === 'funcbutton') { @@ -146,7 +131,6 @@ setting={setting} position="toolbar" selectedData={selectedData} - updateStatus={this.updateStatus} /> ) } else if (item.funcType === 'print') { @@ -162,7 +146,6 @@ position="toolbar" ContainerId={ContainerId} selectedData={selectedData} - updateStatus={this.updateStatus} /> ) } -- Gitblit v1.8.0