【分销商】分销商列表增加字段“主体名称”,【密码】所有关于密码的,默认应该掩码展示

This commit is contained in:
red-deng-deng 2021-12-15 13:53:39 +08:00
parent 8ed582ec24
commit 5f6615dbe5
4 changed files with 19 additions and 9 deletions

View File

@ -93,7 +93,9 @@ import classNames from 'classnames'
if(this.props.placeholder.length>10){
this.setState({'focus':0});
}
if(this.props.onfocusFn){
this.props.onfocusFn(e.target.value);
}
}
//失去焦点
losefofn(e){

View File

@ -403,6 +403,9 @@ export default class adduserinfo extends React.Component{
}
changeType(e){
this.setState({pwdtype:e});
}
changeKind(){
this.setState({pwdtype:'password'});
}
render(){
const companyOptions =this.state.companyList;
@ -479,7 +482,8 @@ this.setState({pwdtype:e});
this.setState({model:model2})
}}
disabled={this.state.disabled}
countShow= {true}
countShow= {true}
onfocusFn={(e)=>this.changeKind()}
onClearItem={(e)=>{
let model2 = this.state.model;
model2.password = '';

View File

@ -31,13 +31,13 @@ const Column = [
type: "normal",
width:'20%'
},
// {
// title: '余额',
// name: 'balance',
// type: "normal",
// prop:'balance',
// width:'auto'
// },
{
title: '主体名称',
name: 'subject',
type: "normal",
prop:'subject',
width:'auto'
},
// {
// title: '累计消费',
// name: 'money',

View File

@ -321,6 +321,9 @@ export default class adduserinfo extends React.Component{
})
}).catch(err=>{
});
}
changeKind(){
this.setState({pwdtype:'password'});
}
cancel(){
//取消二次弹出框
@ -422,6 +425,7 @@ export default class adduserinfo extends React.Component{
}}
markedShow={(e)=>{this.changeType(e)}} kind={this.state.pwdtype}
disabled={this.state.disabled}
onfocusFn={(e)=>this.changeKind()}
onClearItem={(e)=>{
let model2 = this.state.model;
model2.password = "";