更新分销商查询字段

This commit is contained in:
red-deng-deng 2021-11-22 14:41:13 +08:00
parent c0e58b4757
commit c09f3e1fc4
3 changed files with 6 additions and 4 deletions

View File

@ -279,7 +279,7 @@ componentDidUpdate(prevProps,prevState){
<p className="distable dflexj"> <p className="distable dflexj">
<Button type="primary" icon="plus" onClick={this.clickFn.bind(this)}>新建分销商</Button> <Button type="primary" icon="plus" onClick={this.clickFn.bind(this)}>新建分销商</Button>
{/* <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={"请输入充值账号、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> </p>
<Filterbar filterList={this.state.filterList} menuList={this.state.menuList}></Filterbar> <Filterbar filterList={this.state.filterList} menuList={this.state.menuList}></Filterbar>
<div> <div>

View File

@ -3,6 +3,7 @@ import React, { Component } from 'react';
import "./leftnav.less" import "./leftnav.less"
import "../../../../assets/comm.css" import "../../../../assets/comm.css"
import { Card,Button,Notify,Tree } from 'zent'; import { Card,Button,Notify,Tree } from 'zent';
import _ from "lodash"
import {getMenuList,handelResponse} from "../../../../assets/api.js" import {getMenuList,handelResponse} from "../../../../assets/api.js"
const treeData =[] const treeData =[]
export default class leftnav extends React.Component{ export default class leftnav extends React.Component{
@ -20,7 +21,6 @@ export default class leftnav extends React.Component{
selectdom: data selectdom: data
}); });
this.props.menuInfo(data) this.props.menuInfo(data)
} }
onCheck = (checked, helpInfo) => { onCheck = (checked, helpInfo) => {
@ -35,7 +35,7 @@ export default class leftnav extends React.Component{
let _self=this; let _self=this;
getMenuList().then(res=>{ getMenuList().then(res=>{
handelResponse(res,(response,msg)=>{ handelResponse(res,(response,msg)=>{
const menu_data=response; const menu_data=_.cloneDeep(response);
_self.setState({menu_data}); _self.setState({menu_data});
}) })
}) })

View File

@ -63,12 +63,14 @@ methodsonChange = e => {
resetInfo(){ resetInfo(){
console.log(888,this.state.cancelInfo); console.log(888,this.state.cancelInfo);
this.setState({model:this.state.cancelInfo}); this.setState({model:this.state.cancelInfo});
console.log('充值',this.state.cancelInfo);
} }
cancel(){ cancel(){
let model2 = { //数据模型不可少 let model2 = { //数据模型不可少
menuname:"", menuname:"",
} }
this.setState({model:model2}); this.setState({model:model2});
this.refs.form1.cancel(); this.refs.form1.cancel();
} }