From f842d4fc55b705a7055dddfe9bd832fba0dd288b Mon Sep 17 00:00:00 2001 From: yunkexin <760754045@qq.com> Date: Thu, 9 May 2024 10:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BB=A3=E5=8A=9E=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=85=B3=E9=97=AD=E6=9C=AA=E5=88=B7=E6=96=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/Home.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/Home.js b/src/routes/Home.js index 716bca1..8daa7f1 100644 --- a/src/routes/Home.js +++ b/src/routes/Home.js @@ -172,6 +172,7 @@ class Home extends React.Component { super(props); this.state = { visible: false, + overDataKey:'1', userInfo: "", timeNow: "上午好", workData: [], @@ -294,6 +295,9 @@ class Home extends React.Component { showAll = (key) => { const { tableData } = this.state; + this.setState({ + overDataKey:key + }) if (key == "2") { this.state.searchColumns = [ @@ -543,7 +547,7 @@ class Home extends React.Component { }; handleCancel = () => { // 退出弹窗 - // this.getBaseData(1, this.state.tableKey, 5); + this.getBaseData(1, this.state.overDataKey); this.clearData(); }; closeModal = () => {