update
This commit is contained in:
parent
8cedd32d85
commit
37863e4a69
|
@ -33,7 +33,6 @@ import Menu from "../menu/main.js"
|
|||
this.setState({selectedMenu:seleted})
|
||||
this.setState({text:seleted.name})
|
||||
this.setState({menuShow:false})
|
||||
this.props.onSelect()
|
||||
//点击选择菜单
|
||||
console.log(888,id);
|
||||
console.log(this.props);
|
||||
|
|
|
@ -100,6 +100,7 @@ export default class acclist extends React.Component{
|
|||
tabList:[{title:"分销商列表"}],
|
||||
logVisible:false,
|
||||
pwdVisible:false,
|
||||
status:null,
|
||||
resellid:null,
|
||||
key_word:'',
|
||||
limit:10,
|
||||
|
@ -107,7 +108,7 @@ export default class acclist extends React.Component{
|
|||
total:0,
|
||||
resellerList:[],
|
||||
menuList:[{id:0,name:"分销商状态",check:false}],
|
||||
filterList:[{id:0,label:"分销商状态",menuList:[{id:0,name:"开启"},{id:1,name:"关闭"}]}],
|
||||
filterList:[{id:0,label:"分销商状态",menuList:[{id:1,name:"开启"},{id:2,name:"关闭"}]}],
|
||||
}
|
||||
}
|
||||
clickFn(){
|
||||
|
@ -230,6 +231,10 @@ export default class acclist extends React.Component{
|
|||
}, 0);
|
||||
|
||||
}
|
||||
//状态筛选
|
||||
selectedId(e){
|
||||
this.setState({status:e});
|
||||
}
|
||||
//limit
|
||||
countChange(e){
|
||||
this.setState({page:1,limit:e});
|
||||
|
@ -282,7 +287,7 @@ componentDidUpdate(prevProps,prevState){
|
|||
{/* <Button type="info">批量操作</Button> */}
|
||||
<Ipt onClearItem={(e)=>{this.setState({key_word:''})}} wordSearch={this.sureFn.bind(this)} onChange={(e)=>this.setState({key_word:e})} value={this.state.key_word} icon="search" placeholder={"请输入分销商名称、登录账号、联系人、手机号进行搜索"} countShow={false} height={'36px'} width={'260px'} alignment={'left'}/>
|
||||
</p>
|
||||
<Filterbar filterList={this.state.filterList} menuList={this.state.menuList}></Filterbar>
|
||||
<Filterbar selectFn={(e)=>{this.selectedId(e)}} filterList={this.state.filterList} menuList={this.state.menuList}></Filterbar>
|
||||
<div>
|
||||
|
||||
<Grid
|
||||
|
|
Loading…
Reference in New Issue