This commit is contained in:
red-deng-deng 2021-11-24 20:25:15 +08:00
parent 8cedd32d85
commit 37863e4a69
2 changed files with 7 additions and 3 deletions

View File

@ -33,7 +33,6 @@ import Menu from "../menu/main.js"
this.setState({selectedMenu:seleted}) this.setState({selectedMenu:seleted})
this.setState({text:seleted.name}) this.setState({text:seleted.name})
this.setState({menuShow:false}) this.setState({menuShow:false})
this.props.onSelect()
//点击选择菜单 //点击选择菜单
console.log(888,id); console.log(888,id);
console.log(this.props); console.log(this.props);

View File

@ -100,6 +100,7 @@ export default class acclist extends React.Component{
tabList:[{title:"分销商列表"}], tabList:[{title:"分销商列表"}],
logVisible:false, logVisible:false,
pwdVisible:false, pwdVisible:false,
status:null,
resellid:null, resellid:null,
key_word:'', key_word:'',
limit:10, limit:10,
@ -107,7 +108,7 @@ export default class acclist extends React.Component{
total:0, total:0,
resellerList:[], resellerList:[],
menuList:[{id:0,name:"分销商状态",check:false}], 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(){ clickFn(){
@ -230,6 +231,10 @@ export default class acclist extends React.Component{
}, 0); }, 0);
} }
//状态筛选
selectedId(e){
this.setState({status:e});
}
//limit //limit
countChange(e){ countChange(e){
this.setState({page:1,limit:e}); this.setState({page:1,limit:e});
@ -282,7 +287,7 @@ componentDidUpdate(prevProps,prevState){
{/* <Button type="info">批量操作</Button> */} {/* <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'}/> <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> </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> <div>
<Grid <Grid