diff --git a/src/api/file/api.file.ts b/src/api/file/api.file.ts index cbdbd1eaa..e97ed7122 100644 --- a/src/api/file/api.file.ts +++ b/src/api/file/api.file.ts @@ -14,7 +14,7 @@ export default { ) => `${url}/sub-file/${name}/${group}/${id}/${subId}/${fileName}`, file: (name: string, group: string, id: string) => - `${url}/sub/${name}/${group}/${id}`, + `${url}/file/${name}/${group}/${id}`, fileByFile: (name: string, group: string, id: string, fileName: string) => - `${url}/sub/${name}/${group}/${id}/${fileName}`, + `${url}/file/${name}/${group}/${id}/${fileName}`, }; diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index 1ef2f4673..aa758679f 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -4,6 +4,8 @@ const registryNew = `${env.API_URI}/org/profile/`; export default { registryNew, + registryNewByProfileId: (profileId : string) => `${registryNew}${profileId}`, + // เครื่องราชฯ profileNewInsign: `${registryNew}insignia`, profileNewInsignByProfileId: (profileId: string) => @@ -48,8 +50,34 @@ profileNewEducationHisByEducationId: (educationsId: string) => profileNewAbility: `${registryNew}ability`, profileNewAbilityByProfileId: (profileId: string) => `${registryNew}ability/${profileId}`, -profileNewAbilityByAbilityId: (educationId: string) => - `${registryNew}ability/${educationId}`, +profileNewAbilityByAbilityId: (abilityId: string) => + `${registryNew}ability/${abilityId}`, profileNewAbilityHisByAbilityId: (abilityId: string) => `${registryNew}ability/history/${abilityId}`, -}; + + // ใบอนุญาตประกอบวิชาชีพ +profileNewCertificate: `${registryNew}certificate`, +profileNewCertificateByProfileId: (profileId: string) => + `${registryNew}certificate/${profileId}`, +profileNewCertificateByCertificateId: (certificateId: string) => + `${registryNew}certificate/${certificateId}`, +profileNewCertificateHisByCertificateId: (certificateId: string) => + `${registryNew}certificate/history/${certificateId}`, + +// ข้อมูลอื่นๆ +profileNewOther: `${registryNew}other`, +profileNewOtherByProfileId: (profileId: string) => +`${registryNew}other/${profileId}`, +profileNewOtherById: (dataId: string) => `${registryNew}other/${dataId}`, +profileNewOtherHisById: (dataId: string) => +`${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}`, + }; diff --git a/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue b/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue index 514d7f5ee..44888f062 100644 --- a/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue +++ b/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue @@ -228,7 +228,12 @@ function validateForm() { } async function onSubmit() { - if (posLevelName.value.length > 0) { + if ( + posLevelName.value.length > 0 && + posLevelAuthority.value.length > 0 && + posLevelRank.value !== undefined && + posLevelRank.value > 0 + ) { dialogConfirm( $q, async () => { @@ -310,9 +315,12 @@ onMounted(async () => {