解决代办弹窗关闭未刷新问题

This commit is contained in:
yunkexin 2024-05-09 10:55:11 +08:00
parent 6df07fa3ee
commit f842d4fc55

View File

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