bug 78311
This commit is contained in:
@@ -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 () {
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user