diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index 306bdee6b..d655ad806 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -1,5 +1,6 @@ import env from "../index"; -const placement = `${env.API_PLACEMENT_URI}/Placement/placement`; +// const placement = `${env.API_PLACEMENT_URI}/placement`; +const placement = `${env.API_URI}/placement`; const orgTree = `${env.API_URI_ORG_TREE}`; export default { diff --git a/src/api/index.ts b/src/api/index.ts index 9ba34e3bc..e02e135df 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -20,7 +20,7 @@ const config = ref({ API_CANDIDATE_URI: "https://bma-ehr.frappet.synology.me/api/v1", // API_REPORT_URI: "https://localhost:7187/api/v1", API_REPORT_URI: "https://bma-ehr.frappet.synology.me/api/v1", - API_PLACEMENT_URI: "https://localhost:7260/api", + API_PLACEMENT_URI: "https://localhost:7260/api/v1", API_URI_ORG_TREE: "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230712_172702.json", MEET_URI: "meet.frappet.com", diff --git a/src/modules/05_placement/components/PersonalDetail/Detail.vue b/src/modules/05_placement/components/PersonalDetail/Detail.vue index c68167ce6..7f55d64d1 100644 --- a/src/modules/05_placement/components/PersonalDetail/Detail.vue +++ b/src/modules/05_placement/components/PersonalDetail/Detail.vue @@ -17,6 +17,11 @@ import ExamResult from "@/modules/05_placement/components/PersonalDetail/ExamRes import Qualification from "@/modules/05_placement/components/PersonalDetail/Qualification.vue"; import Familyvue from "@/modules/05_placement/components/PersonalDetail/Information/Family.vue"; +import { + AddressDataDefualt, + FamilyDataDefualt, +} from "@/modules/05_placement/interface/index/Main"; + import type { Property, PointExam, @@ -77,43 +82,6 @@ const InformationDataDefualt: Information = { religionId: "", }; -const FamilyDataDefualt: Family = { - couple: false, - marryPrefix: "", - marryPrefixId: "", - marryFirstName: "", - marryLastName: "", - marryOccupation: "", - fatherPrefix: "", - fatherPrefixId: "", - fatherFirstName: "", - fatherLastName: "", - fatherOccupation: "", - motherPrefix: "", - motherPrefixId: "", - motherFirstName: "", - motherLastName: "", - motherOccupation: "", -}; - -const AddressDataDefualt: Address = { - registSubDistrict: "", - registSubDistrictId: "", - registZipCode: "", - registDistrict: "", - registDistrictId: "", - registProvince: "", - registProvinceId: "", - currentSubDistrict: "", - currentSubDistrictId: "", - currentZipCode: "", - currentDistrict: "", - currentDistrictId: "", - currentProvince: "", - currentProvinceId: "", - registSame: false, -}; - const personalData = ref({ id: "", fullName: "", @@ -157,7 +125,9 @@ const fetchData = async () => { InformationData.value.age = data.age; InformationData.value.telephone = data.telephone; - AddressData.value.registSame = data.registSame ?? false; + AddressData.value.registAddress = data.registAddress ?? ""; + AddressData.value.currentAddress = data.currentAddress ?? ""; + AddressData.value.registSame = data.registSame ? "1" : "0"; AddressData.value.registSubDistrict = data.registSubDistrict ?? ""; AddressData.value.registSubDistrictId = data.registSubDistrictId ?? ""; AddressData.value.registZipCode = data.registZipCode ?? ""; @@ -173,7 +143,7 @@ const fetchData = async () => { AddressData.value.currentProvince = data.currentProvince ?? ""; AddressData.value.currentProvinceId = data.currentProvinceId ?? ""; - FamilyData.value.couple = data.couple ?? false; + FamilyData.value.couple = data.couple ? "1" : "0"; FamilyData.value.marryPrefix = data.marryPrefix ?? ""; FamilyData.value.marryPrefixId = data.marryPrefixId ?? ""; FamilyData.value.marryFirstName = data.marryFirstName ?? ""; diff --git a/src/modules/05_placement/components/PersonalDetail/Information/Address.vue b/src/modules/05_placement/components/PersonalDetail/Information/Address.vue index e5afc189b..00c482ab1 100644 --- a/src/modules/05_placement/components/PersonalDetail/Information/Address.vue +++ b/src/modules/05_placement/components/PersonalDetail/Information/Address.vue @@ -2,19 +2,13 @@