feat: 修复保洁、绿植、园区、系统用户相关bug

This commit is contained in:
fyy
2025-07-14 11:53:18 +08:00
parent 9279f2246a
commit c8b6d2faba
11 changed files with 254 additions and 243 deletions

View File

@@ -65,7 +65,9 @@ const [BasicModal, modalApi] = useVbenModal({
if (isUpdate.value && id) {
const record = await communityInfo(id);
await formApi.setValues(record);
}
setupDeptSelect();
await markInitialized();
modalApi.modalLoading(false);
@@ -83,7 +85,10 @@ async function handleConfirm() {
}
// getValues获取为一个readonly的对象 需要修改必须先深拷贝一次
const data: CommunityForm = cloneDeep(await formApi.getValues());
data.cityFullName = currentSelectNode.fullName;
// data.cityFullName = currentSelectNode? currentSelectNode.fullName : data.cityFullName;
if (currentSelectNode?.fullName) {
data.cityFullName = currentSelectNode.fullName;
}
await (isUpdate.value ? communityUpdate(data) : communityAdd(data));
resetInitialized();
emit('reload');