|
@@ -5,6 +5,9 @@
|
|
|
<el-form-item label="用户账号" >
|
|
|
<el-input v-model="userForm.account" disabled placeholder="请输入" clearable />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="原密码" prop="oldPassword">
|
|
|
+ <el-input v-model="userForm.oldPassword" type="password" placeholder="请输入" clearable show-password />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="登录密码" prop="password">
|
|
|
<el-input v-model="userForm.password" type="password" placeholder="请输入" clearable show-password />
|
|
|
</el-form-item>
|
|
@@ -28,6 +31,7 @@ const formRef = ref<any>();
|
|
|
const rules = ref<any>(
|
|
|
{
|
|
|
account: [{ required: true, message: "用户账号不能为空", trigger: "blur" }],
|
|
|
+ oldPassword: [{ required: true, message: "原登录密码不能为空", trigger: "blur" }],
|
|
|
password: [{ required: true, message: "登录密码不能为空", trigger: "blur" }],
|
|
|
confirmPassword: [{ required: true, message: "确认密码不能为空", trigger: "blur" }],
|
|
|
role: [{ required: true, message: "角色不能为空", trigger: "blur" }],
|
|
@@ -45,7 +49,8 @@ const userForm = ref<any>({
|
|
|
name: "",
|
|
|
post: "",
|
|
|
affiliation: "",
|
|
|
- phone: ""
|
|
|
+ phone: "",
|
|
|
+ oldPassword:''
|
|
|
});
|
|
|
|
|
|
const dialogVisible = ref(false);
|