diff --git a/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue index 8fc8a1551..67e9f06f3 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue @@ -240,20 +240,17 @@ async function uploadfile(subId: string) { //อัพโหลไฟล์ await uploadFile(uploadUrl, fileUpload.value); - await updateIsUpload(); + await updateIsUpload(subId); } catch (err) { messageError($q, err); } } /** ฟังก์ชันอัพเดทสถานะอัพโหลด*/ -async function updateIsUpload() { +async function updateIsUpload(subId: string) { await http .patch( - config.API.profileNewCertificateByCertificateId( - editId.value, - empType.value - ), + config.API.profileNewCertificateByCertificateId(subId, empType.value), { isUpload: fileUpload.value ? true : false, } diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue index b754ac899..62dbb8150 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue @@ -400,21 +400,18 @@ async function uploadfile(id: string) { //อัพโหลไฟล์ await uploadFile(uploadUrl, fileUpload.value); - await updateIsUpload(); + await updateIsUpload(id); } catch (err) { messageError($q, err); } } /** ฟังก์ชันอัพเดทสถานะอัพโหลด*/ -async function updateIsUpload() { +async function updateIsUpload(id: string) { await http - .patch( - config.API.profileNewDisciplineByDisciplineId(id.value, empType.value), - { - isUpload: fileUpload.value ? true : false, - } - ) + .patch(config.API.profileNewDisciplineByDisciplineId(id, empType.value), { + isUpload: fileUpload.value ? true : false, + }) .then(() => { fileUpload.value = null; }); diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue index c70426561..7f4b94024 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -618,7 +618,7 @@ onMounted(async () => { { { { + +
{