5.1日 暂定 水电表管理

This commit is contained in:
Zy
2026-05-01 18:36:37 +08:00
parent 7b89144dd4
commit a8bb4e66ad
103 changed files with 1071 additions and 533 deletions

View File

@@ -308,6 +308,7 @@ const initFormData: UserForm = {
userName: '',
nickName: undefined,
password: '',
villageIds: '',
phonenumber: undefined,
email: undefined,
sex: undefined,
@@ -323,6 +324,7 @@ const initData: PageData<UserForm, UserQuery> = {
pageNum: 1,
pageSize: 10,
userName: '',
villageIds: '',
phonenumber: '',
status: '',
deptId: '',
@@ -534,6 +536,9 @@ const handleUpdate = async (row?: UserForm) => {
roleOptions.value = Array.from(new Map([...data.roles, ...data.user.roles].map((role) => [role.roleId, role])).values());
form.value.postIds = data.postIds;
form.value.roleIds = data.roleIds;
if (data.user.villageIds) {
villags.value = data.user.villageIds.split(',').filter((item) => item);
}
form.value.password = '';
};