修复营销系统key码列表bug

This commit is contained in:
许红梅 2022-05-20 17:12:21 +08:00
parent bd1f37643b
commit 5869602c22
1 changed files with 10 additions and 4 deletions

View File

@ -112,6 +112,7 @@ export default class acclist extends React.Component {
//分页 //分页
onPageChange(e) { onPageChange(e) {
this.setState({ page: e }); this.setState({ page: e });
setTimeout(() => { setTimeout(() => {
this.getpageFn(); this.getpageFn();
}, 0); }, 0);
@ -149,9 +150,13 @@ export default class acclist extends React.Component {
let data = { let data = {
page: this.state.page, page: this.state.page,
limit: this.state.limit, limit: this.state.limit,
key: this.state.key, key: this.state.key,
}; };
console.log(155,this.state.status);
let status = this.state.status > 0 ? this.state.status : null;
if (status) {
data.status=status;
}
this.getKeyCodeList(data); this.getKeyCodeList(data);
} }
@ -208,6 +213,7 @@ export default class acclist extends React.Component {
} }
iptsureFn(e) { iptsureFn(e) {
let status = this.state.status > 0 ? this.state.status : null;
this.setState({ page: 1 }); this.setState({ page: 1 });
this.setState({ limit: 10 }); this.setState({ limit: 10 });
let data = { let data = {
@ -215,6 +221,9 @@ export default class acclist extends React.Component {
limit: 10, limit: 10,
key: this.state.search, key: this.state.search,
}; };
if (status) {
data.status=status;
}
this.getKeyCodeList(data); this.getKeyCodeList(data);
} }
@ -234,10 +243,7 @@ export default class acclist extends React.Component {
tabFn(e) { tabFn(e) {
let status = e > 0 ? e : null; let status = e > 0 ? e : null;
if (!status) {
this.setState({ status: e }); this.setState({ status: e });
}
this.setState({ search: "" }); this.setState({ search: "" });
this.setState({ page: 1 }); this.setState({ page: 1 });
this.setState({ limit: 10 }); this.setState({ limit: 10 });