国家地区回显

This commit is contained in:
‘huanghaiixia’
2025-11-06 17:19:03 +08:00
parent 76fbfca5f5
commit d6cc433b26
2 changed files with 35 additions and 19 deletions

View File

@ -15,7 +15,8 @@ enum Api {
DataLog = '/mdm/countryRegion/datalog',
TreeData = '/mdm/countryRegion/tree',
TreeChild = '/mdm/countryRegion/child'
TreeChild = '/mdm/countryRegion/child',
TreeChildInfo = '/mdm/countryRegion/getParentByCode'
}
/**
@ -46,7 +47,20 @@ export async function getAreaList(params: LngBRegionPageParams, mode: ErrorMessa
},
);
}
/**
* @description: 分节点查询LngBRegion树回显
*/
export async function getAreaInfo(params: LngBRegionPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngBRegionPageResult>(
{
url: Api.TreeChildInfo,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 查询LngBRegion分页列表
*/