feat: implement functionality to filter request list by same office area
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 10s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 10s
This commit is contained in:
parent
550ed55de0
commit
d95d72806d
3 changed files with 80 additions and 9 deletions
|
|
@ -102,12 +102,25 @@ const useAddressStore = defineStore('api-address', () => {
|
|||
return subDistrict.value[districtId];
|
||||
}
|
||||
|
||||
async function listSameOfficeArea(districtId: string) {
|
||||
const res = await api.post<string[]>(
|
||||
`/employment-office/list-same-office-area`,
|
||||
{ districtId: districtId },
|
||||
);
|
||||
|
||||
if (!res) return false;
|
||||
|
||||
return res.data;
|
||||
}
|
||||
|
||||
return {
|
||||
fetchOffice,
|
||||
fetchOfficeById,
|
||||
fetchProvince,
|
||||
fetchDistrictByProvinceId,
|
||||
fetchSubDistrictByProvinceId,
|
||||
|
||||
listSameOfficeArea,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue