1) 增加 分销商 模糊搜索
This commit is contained in:
parent
f608c84598
commit
ed50e4126c
|
@ -534,21 +534,31 @@ export default class adduserinfo extends React.Component {
|
|||
this.setState({ pwdtype: "password" });
|
||||
}
|
||||
onKeywordChange(e) {
|
||||
console.log("keyword ==>", e);
|
||||
this.setState({ keyword: e });
|
||||
let params = {
|
||||
limit: this.state.limit,
|
||||
page: this.state.page,
|
||||
page: 1,
|
||||
key_word: e,
|
||||
};
|
||||
this.directList(params);
|
||||
this.setState({ keyword: e });
|
||||
|
||||
if (!params.key_word) {
|
||||
delete params.key_word;
|
||||
}
|
||||
|
||||
getDirectList(params).then((res) => {
|
||||
if (res.code === 200) {
|
||||
let directLists = this.state.directList;
|
||||
directLists = this.setZentOpt(res.data.data);
|
||||
this.setState({
|
||||
directList: directLists,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
render() {
|
||||
const companyOptions = this.state.companyList;
|
||||
//校验规则
|
||||
|
||||
//销售人员
|
||||
|
||||
return (
|
||||
<div id="addaccinfo" className="addreseller">
|
||||
<Form
|
||||
|
|
Loading…
Reference in New Issue