修复营销系统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) {
this.setState({ page: e });
setTimeout(() => {
this.getpageFn();
}, 0);
@ -149,9 +150,13 @@ export default class acclist extends React.Component {
let data = {
page: this.state.page,
limit: this.state.limit,
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);
}
@ -208,6 +213,7 @@ export default class acclist extends React.Component {
}
iptsureFn(e) {
let status = this.state.status > 0 ? this.state.status : null;
this.setState({ page: 1 });
this.setState({ limit: 10 });
let data = {
@ -215,6 +221,9 @@ export default class acclist extends React.Component {
limit: 10,
key: this.state.search,
};
if (status) {
data.status=status;
}
this.getKeyCodeList(data);
}
@ -234,10 +243,7 @@ export default class acclist extends React.Component {
tabFn(e) {
let status = e > 0 ? e : null;
if (!status) {
this.setState({ status: e });
}
this.setState({ search: "" });
this.setState({ page: 1 });
this.setState({ limit: 10 });