更新分销商查询字段
This commit is contained in:
parent
c0e58b4757
commit
c09f3e1fc4
|
@ -279,7 +279,7 @@ componentDidUpdate(prevProps,prevState){
|
|||
<p className="distable dflexj">
|
||||
<Button type="primary" icon="plus" onClick={this.clickFn.bind(this)}>新建分销商</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={"请输入充值账号、key、分销商等关键字进行搜索"} 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>
|
||||
<Filterbar filterList={this.state.filterList} menuList={this.state.menuList}></Filterbar>
|
||||
<div>
|
||||
|
|
|
@ -3,6 +3,7 @@ import React, { Component } from 'react';
|
|||
import "./leftnav.less"
|
||||
import "../../../../assets/comm.css"
|
||||
import { Card,Button,Notify,Tree } from 'zent';
|
||||
import _ from "lodash"
|
||||
import {getMenuList,handelResponse} from "../../../../assets/api.js"
|
||||
const treeData =[]
|
||||
export default class leftnav extends React.Component{
|
||||
|
@ -20,7 +21,6 @@ export default class leftnav extends React.Component{
|
|||
selectdom: data
|
||||
});
|
||||
this.props.menuInfo(data)
|
||||
|
||||
}
|
||||
|
||||
onCheck = (checked, helpInfo) => {
|
||||
|
@ -35,7 +35,7 @@ export default class leftnav extends React.Component{
|
|||
let _self=this;
|
||||
getMenuList().then(res=>{
|
||||
handelResponse(res,(response,msg)=>{
|
||||
const menu_data=response;
|
||||
const menu_data=_.cloneDeep(response);
|
||||
_self.setState({menu_data});
|
||||
})
|
||||
})
|
||||
|
|
|
@ -63,12 +63,14 @@ methodsonChange = e => {
|
|||
resetInfo(){
|
||||
console.log(888,this.state.cancelInfo);
|
||||
this.setState({model:this.state.cancelInfo});
|
||||
console.log('充值',this.state.cancelInfo);
|
||||
}
|
||||
cancel(){
|
||||
let model2 = { //数据模型不可少
|
||||
menuname:"",
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
this.setState({model:model2});
|
||||
this.refs.form1.cancel();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue