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 = () => {