ปรับหน้าขอแก้ไขข้อมูลทะเบียนประวัติ
This commit is contained in:
parent
d44cc0d477
commit
c6acb3e2b8
9 changed files with 131 additions and 324 deletions
|
|
@ -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
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ export const useProfileDataStore = defineStore("profile", () => {
|
|||
nationality: null,
|
||||
ethnicity: null,
|
||||
birthDate: null,
|
||||
phone: null,
|
||||
lastName: "",
|
||||
firstName: "",
|
||||
prefix: "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue