ทะเบียนประวัติ: ลบlog+เพิ่มapi
This commit is contained in:
parent
cd9ffe4b94
commit
857413ea98
2 changed files with 10 additions and 2 deletions
|
|
@ -71,4 +71,13 @@ profileNewOtherByProfileId: (profileId: string) =>
|
||||||
profileNewOtherById: (dataId: string) => `${registryNew}other/${dataId}`,
|
profileNewOtherById: (dataId: string) => `${registryNew}other/${dataId}`,
|
||||||
profileNewOtherHisById: (dataId: string) =>
|
profileNewOtherHisById: (dataId: string) =>
|
||||||
`${registryNew}other/history/${dataId}`,
|
`${registryNew}other/history/${dataId}`,
|
||||||
};
|
|
||||||
|
// ข้อมูลครอบครัว
|
||||||
|
profileNewFamily: `${registryNew}family`,
|
||||||
|
profileNewFamilyByProfileId: (profileId: string) =>
|
||||||
|
`${registryNew}family/${profileId}`,
|
||||||
|
profileNewFamilyByFamilyId: (familyId: string) =>
|
||||||
|
`${registryNew}family/${familyId}`,
|
||||||
|
profileNewFamilyeHisByFamilyId: (familyId: string) =>
|
||||||
|
`${registryNew}family/history/${familyId}`,
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,6 @@ async function fetchDataPersonal() {
|
||||||
.get(config.API.registryNewByProfileId(profileId.value))
|
.get(config.API.registryNewByProfileId(profileId.value))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
formDetail.value = res.data.result;
|
formDetail.value = res.data.result;
|
||||||
console.log(formDetail.value);
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue