diff --git a/src/views/modules/portrayal/jumin/index.vue b/src/views/modules/portrayal/jumin/index.vue index 23fc0bd3d..e05babec4 100644 --- a/src/views/modules/portrayal/jumin/index.vue +++ b/src/views/modules/portrayal/jumin/index.vue @@ -1483,17 +1483,52 @@ export default { window.scrollTo({ top: topPos, behavior: "smooth" }); }, - - async handelCLickShowCheckPassword(type) { - console.log(this.showFlagnameBtn,"dsflkjdjfsk"); - + handelCLickShowCheckPassword(type){ + if (!this.showFlagnameBtn) { + if(type=="name"){ + this.showFlagnameBtn = true; + this.$set( + this.resiDetailObj.baseInfoDto, + "name", + "*" + + this.resiDetailObj.baseInfoDto.name.substr(1, this.resiDetailObj.baseInfoDto.name.length-1) + ); + } + }else if(!this.showFlagMobileBtn){ + if(type=="mobile"){ + this.showFlagMobileBtn = true; + this.$set( + this.resiDetailObj.baseInfoDto, + "mobile", + this.resiDetailObj.baseInfoDto.mobile.substr(0, 3) + + "****" + + this.resiDetailObj.baseInfoDto.mobile.substr(7, 4) + ); + } + }else if(!this.showFlagIdCardBtn){ + if(type=="idCard"){ + this.showFlagIdCardBtn = true; + this.$set( + this.resiDetailObj.baseInfoDto, + "idNum", + this.resiDetailObj.baseInfoDto.idNum.substr(0, 11) + + "****" + + this.resiDetailObj.baseInfoDto.idNum.substr(16, 2) + ); + } + }else { + this. handelCLickShowCheckPasswordclike() + } + }, + async handelCLickShowCheckPasswordclike(type) { + // console.log(this.showFlagnameBtn,"dsflkjdjfsk"); const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${this.resiId}`; let parm = { }; const { data, code, msg } = await requestPost(url, parm); if (!data) { this.form.password = ""; - this.checkType = "view"; + this.checkType = "view"; if (type === "idCard") { if (this.showFlagIdCardBtn) { this.showCheckPassword = true;