From 77ba2cf3cea870c796ad1a14977400a87b3ec44a Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Wed, 15 Dec 2021 14:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=B4=A6=E5=8F=B7=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=8E=A9=E7=A0=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/system/subAccount/add/adduserinfo/adduserinfo.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/system/subAccount/add/adduserinfo/adduserinfo.js b/src/pages/system/subAccount/add/adduserinfo/adduserinfo.js index 3552c2c0..3e83d38f 100644 --- a/src/pages/system/subAccount/add/adduserinfo/adduserinfo.js +++ b/src/pages/system/subAccount/add/adduserinfo/adduserinfo.js @@ -97,7 +97,9 @@ export default class adduserinfo extends React.Component{ } } } - + changeKind(){ + this.setState({pwdtype:'password'}); + } submit(){ let valiform=this.refs.form1.validator() let roleArr=this.refs.roletree.state.checkedKeys; @@ -421,7 +423,8 @@ export default class adduserinfo extends React.Component{ let model2 = this.state.model; model2.password = e; this.setState({model:model2}) - }} + }} + onfocusFn={(e)=>this.changeKind()} markedShow={(e)=>{this.changeType(e)}} kind={this.state.pwdtype} disabled={this.state.disabled} onClearItem={(e)=>{