feat: 修复保洁、绿植、园区、系统用户相关bug
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user