Merge branch 'dev_1.0.2'

This commit is contained in:
red-deng-deng 2021-12-15 13:55:23 +08:00
commit d64f9d517b
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){ 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){

View File

@ -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 = '';

View File

@ -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',

View File

@ -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 = "";