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');
|
||||
|
@@ -42,14 +42,14 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '地址',
|
||||
field: 'addr',
|
||||
},
|
||||
{
|
||||
title: '经度',
|
||||
field: 'lon',
|
||||
},
|
||||
{
|
||||
title: '维度',
|
||||
field: 'lat',
|
||||
},
|
||||
// {
|
||||
// title: '经度',
|
||||
// field: 'lon',
|
||||
// },
|
||||
// {
|
||||
// title: '维度',
|
||||
// field: 'lat',
|
||||
// },
|
||||
{
|
||||
title: '占地面积',
|
||||
field: 'area',
|
||||
@@ -136,16 +136,16 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '经度',
|
||||
fieldName: 'lon',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '维度',
|
||||
fieldName: 'lat',
|
||||
component: 'Input',
|
||||
},
|
||||
// {
|
||||
// label: '经度',
|
||||
// fieldName: 'lon',
|
||||
// component: 'Input',
|
||||
// },
|
||||
// {
|
||||
// label: '维度',
|
||||
// fieldName: 'lat',
|
||||
// component: 'Input',
|
||||
// },
|
||||
{
|
||||
label: '占地面积',
|
||||
fieldName: 'area',
|
||||
|
Reference in New Issue
Block a user