【分销商】分销商列表增加字段“主体名称”,【密码】所有关于密码的,默认应该掩码展示
This commit is contained in:
parent
8ed582ec24
commit
5f6615dbe5
|
@ -93,7 +93,9 @@ import classNames from 'classnames'
|
||||||
if(this.props.placeholder.length>10){
|
if(this.props.placeholder.length>10){
|
||||||
this.setState({'focus':0});
|
this.setState({'focus':0});
|
||||||
}
|
}
|
||||||
|
if(this.props.onfocusFn){
|
||||||
|
this.props.onfocusFn(e.target.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//失去焦点
|
//失去焦点
|
||||||
losefofn(e){
|
losefofn(e){
|
||||||
|
|
|
@ -403,6 +403,9 @@ export default class adduserinfo extends React.Component{
|
||||||
}
|
}
|
||||||
changeType(e){
|
changeType(e){
|
||||||
this.setState({pwdtype:e});
|
this.setState({pwdtype:e});
|
||||||
|
}
|
||||||
|
changeKind(){
|
||||||
|
this.setState({pwdtype:'password'});
|
||||||
}
|
}
|
||||||
render(){
|
render(){
|
||||||
const companyOptions =this.state.companyList;
|
const companyOptions =this.state.companyList;
|
||||||
|
@ -480,6 +483,7 @@ this.setState({pwdtype:e});
|
||||||
}}
|
}}
|
||||||
disabled={this.state.disabled}
|
disabled={this.state.disabled}
|
||||||
countShow= {true}
|
countShow= {true}
|
||||||
|
onfocusFn={(e)=>this.changeKind()}
|
||||||
onClearItem={(e)=>{
|
onClearItem={(e)=>{
|
||||||
let model2 = this.state.model;
|
let model2 = this.state.model;
|
||||||
model2.password = '';
|
model2.password = '';
|
||||||
|
|
|
@ -31,13 +31,13 @@ const Column = [
|
||||||
type: "normal",
|
type: "normal",
|
||||||
width:'20%'
|
width:'20%'
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// title: '余额',
|
title: '主体名称',
|
||||||
// name: 'balance',
|
name: 'subject',
|
||||||
// type: "normal",
|
type: "normal",
|
||||||
// prop:'balance',
|
prop:'subject',
|
||||||
// width:'auto'
|
width:'auto'
|
||||||
// },
|
},
|
||||||
// {
|
// {
|
||||||
// title: '累计消费',
|
// title: '累计消费',
|
||||||
// name: 'money',
|
// name: 'money',
|
||||||
|
|
|
@ -321,6 +321,9 @@ export default class adduserinfo extends React.Component{
|
||||||
})
|
})
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
changeKind(){
|
||||||
|
this.setState({pwdtype:'password'});
|
||||||
}
|
}
|
||||||
cancel(){
|
cancel(){
|
||||||
//取消二次弹出框
|
//取消二次弹出框
|
||||||
|
@ -422,6 +425,7 @@ export default class adduserinfo extends React.Component{
|
||||||
}}
|
}}
|
||||||
markedShow={(e)=>{this.changeType(e)}} kind={this.state.pwdtype}
|
markedShow={(e)=>{this.changeType(e)}} kind={this.state.pwdtype}
|
||||||
disabled={this.state.disabled}
|
disabled={this.state.disabled}
|
||||||
|
onfocusFn={(e)=>this.changeKind()}
|
||||||
onClearItem={(e)=>{
|
onClearItem={(e)=>{
|
||||||
let model2 = this.state.model;
|
let model2 = this.state.model;
|
||||||
model2.password = "";
|
model2.password = "";
|
||||||
|
|
Loading…
Reference in New Issue