重置密码
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
dec01d779d
commit
f637f746cb
|
@ -76,7 +76,8 @@
|
|||
>
|
||||
<!-- 用户名 -->
|
||||
<el-form-item :label="$t('passwordReset:form:userName')" prop="UserId">
|
||||
<el-select
|
||||
<el-input v-model="form.UserName" disabled />
|
||||
<!-- <el-select
|
||||
v-model="form.UserId"
|
||||
clearable
|
||||
filterable
|
||||
|
@ -94,15 +95,15 @@
|
|||
item.UserType
|
||||
}}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-select> -->
|
||||
</el-form-item>
|
||||
<!-- 用户类型 -->
|
||||
<el-form-item
|
||||
<!-- <el-form-item
|
||||
v-if="form.UserId"
|
||||
:label="$t('passwordReset:form:userType')"
|
||||
>
|
||||
<el-input v-model="form.UserType" disabled />
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
<!-- 新密码 -->
|
||||
<el-form-item
|
||||
class="my_new_pwd"
|
||||
|
@ -338,11 +339,13 @@ export default {
|
|||
)
|
||||
.then((res) => {
|
||||
this.formLoading = false
|
||||
this.users = res.Result
|
||||
if (this.users.length === 1) {
|
||||
this.form.UserId = this.users[0].UserId
|
||||
this.form.UserType = this.users[0].UserType
|
||||
}
|
||||
this.form.UserId = res.Result.Id
|
||||
this.form.UserName = res.Result.UserName
|
||||
// this.users = res.Result
|
||||
// if (this.users.length === 1) {
|
||||
// this.form.UserId = this.users[0].UserId
|
||||
// this.form.UserType = this.users[0].UserType
|
||||
// }
|
||||
// 验证成功
|
||||
this.$message.success(
|
||||
this.$t('passwordReset:message:verifiedSuccessfully')
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
append-to-body
|
||||
:show-close="false"
|
||||
:title="$t('system:userlist:roleList:title')"
|
||||
:before-close="cancel"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue