ปรับหน้าขอแก้ไขข้อมูลทะเบียนประวัติ

This commit is contained in:
setthawutttty 2024-10-24 15:47:39 +07:00
parent d44cc0d477
commit c6acb3e2b8
9 changed files with 131 additions and 324 deletions

View file

@ -335,6 +335,24 @@ export const useDataLinkCenter = defineStore("DataLinkCenter", () => {
break;
}
}
/**
* function fetch
*/
function fetchDataRelationship() {
http
.get(config.API.orgRelationship)
.then((res) => {
const list = res.data.result.map((e: any) => ({
id: e.id,
name: e.name,
}));
optionRelationshipMain.value = list;
})
.catch((err) => {
messageError($q, err);
});
}
return {
fetchPerson,
OpsPersonFilter,
@ -348,5 +366,6 @@ export const useDataLinkCenter = defineStore("DataLinkCenter", () => {
fetchSubDistrict,
optionRelationshipMain,
optionRelationship,
fetchDataRelationship
};
});

View file

@ -34,7 +34,6 @@ export const useProfileDataStore = defineStore("profile", () => {
nationality: null,
ethnicity: null,
birthDate: null,
phone: null,
lastName: "",
firstName: "",
prefix: "",