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