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

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); super(props);
this.state = { this.state = {
visible: false, visible: false,
overDataKey:'1',
userInfo: "", userInfo: "",
timeNow: "上午好", timeNow: "上午好",
workData: [], workData: [],
@ -294,6 +295,9 @@ class Home extends React.Component {
showAll = (key) => { showAll = (key) => {
const { tableData } = this.state; const { tableData } = this.state;
this.setState({
overDataKey:key
})
if (key == "2") { if (key == "2") {
this.state.searchColumns = [ this.state.searchColumns = [
@ -543,7 +547,7 @@ class Home extends React.Component {
}; };
handleCancel = () => { handleCancel = () => {
// 退出弹窗 // 退出弹窗
// this.getBaseData(1, this.state.tableKey, 5); this.getBaseData(1, this.state.overDataKey);
this.clearData(); this.clearData();
}; };
closeModal = () => { closeModal = () => {