解决切换bug

This commit is contained in:
red-deng-deng 2021-11-26 10:59:41 +08:00
parent fe0c173380
commit 9dcd29828d
1 changed files with 3 additions and 3 deletions

View File

@ -127,15 +127,15 @@ export default class acclist extends React.Component{
getKeyList(time={}){ getKeyList(time={}){
let _self=this; let _self=this;
let {page,limit,key_word,product_type}=_self.state; let {page,limit,key_word,activepage}=_self.state;
let data={page,limit} let data={page,limit}
data.plan_id=sessionStorage.getItem("key_plan_id"); data.plan_id=sessionStorage.getItem("key_plan_id");
if(this.state.combinedValue&&this.state.combinedValue[0]){ if(this.state.combinedValue&&this.state.combinedValue[0]){
data.begin_time=this.state.combinedValue[0]; data.begin_time=this.state.combinedValue[0];
data.end_time=this.state.combinedValue[1]; data.end_time=this.state.combinedValue[1];
} }
if(product_type){ if(activepage){
data.product_type=product_type; data.status=activepage;
} }
if(key_word){ if(key_word){
data.key_word=key_word; data.key_word=key_word;