新增用户用户密码系统可以自动赋值一个初始密码,123456。
This commit is contained in:
@@ -614,7 +614,7 @@ const deptName = ref('');
|
|||||||
const deptOptions = ref(undefined);
|
const deptOptions = ref(undefined);
|
||||||
const wardListOptions = ref(undefined);
|
const wardListOptions = ref(undefined);
|
||||||
const locationOptions = ref([]);
|
const locationOptions = ref([]);
|
||||||
const initPassword = ref(undefined);
|
const initPassword = ref('123456');
|
||||||
const postOptions = ref([]);
|
const postOptions = ref([]);
|
||||||
const roleOptions = ref([]);
|
const roleOptions = ref([]);
|
||||||
const doctorShow = ref(true);
|
const doctorShow = ref(true);
|
||||||
@@ -904,7 +904,8 @@ function handleAdd() {
|
|||||||
locationAdminShow.value = true;
|
locationAdminShow.value = true;
|
||||||
pharmacyShow.value = true;
|
pharmacyShow.value = true;
|
||||||
title.value = '添加用户';
|
title.value = '添加用户';
|
||||||
form.value.password = initPassword.value;
|
// 强制赋值初始密码(覆盖原逻辑,确保一定生效)
|
||||||
|
form.value.password = initPassword.value; // 这里会将123456赋值给密码输入框
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
|
|||||||
Reference in New Issue
Block a user