bug 78311

This commit is contained in:
danshihao
2023-11-09 09:09:35 +08:00
parent 0205e5dd01
commit 547b38d7be
6 changed files with 17 additions and 7 deletions
+4
View File
@@ -406,6 +406,10 @@ export default {
})
},
handleChangePassword (username) {
if (process.env.VUE_APP_CURRENT_SYSTEM === 'IAM') {
this.$message.warn('请前往IAM修改密码')
return
}
this.$refs.passwordmodal.show(username)
},
passwordModalOk () {
+5 -3
View File
@@ -22,7 +22,7 @@
</a-form-item>
<a-form-item :label="$t('user.confirmPassword')" :labelCol="labelCol" :wrapperCol="wrapperCol" :hasFeedback="true" >
<a-input type="password" @blur="handleConfirmBlur" :placeholder="$t('reenterLoginPassword')" v-decorator="[ 'confirmpassword', validatorRules.confirmpassword]"/>
<a-input type="password" @blur="handleConfirmBlur" :placeholder="$t('user.reenterLoginPassword')" v-decorator="[ 'confirmpassword', validatorRules.confirmpassword]"/>
</a-form-item>
</a-form>
@@ -48,14 +48,16 @@ export default {
message: this.$t('user.passwordConsists')
}, {
validator: this.validateToNextPassword
}]
}],
validateTrigger: 'blur'
},
confirmpassword: {
rules: [{
required: true, message: this.$t('user.reenterLoginPassword')
}, {
validator: this.compareToFirstPassword
}]
}],
validateTrigger: 'blur'
}
},