ลบไฟล์ที่อัปโหลด
-
+
{{ "[ไฟล์ jpg,png,pdf,csv,doc ขนาดไม่เกิน 10MB]" }}
@@ -486,7 +505,11 @@
v-if="fileDocs.length != 0"
>
-
+
{{ file.fileName }}
@@ -534,7 +557,9 @@
-
รายละเอียด
+
+ รายละเอียด
+
("");
@@ -733,7 +766,7 @@ watch(organizationName, (count: DataOption, prevCount: DataOption) => {
});
onMounted(async () => {
- loaderPage(false);
+ hideLoader();
if (route.params.id != undefined) {
edit.value = true;
id.value = route.params.id.toString();
@@ -748,7 +781,7 @@ const clickBack = () => {
};
const fetchData = async () => {
- loaderPage(true);
+ showLoader();
await http
.get(config.API.getPeriodById(id.value))
.then((res) => {
@@ -785,7 +818,7 @@ const fetchData = async () => {
messageError($q, e);
})
.finally(() => {
- loaderPage(false);
+ hideLoader();
});
};
@@ -797,7 +830,9 @@ const fileUploadDoc = async (files: any) => {
const fileRemoveDoc = async (files: any) => {
files.forEach((file: any) => {
- const index = fileDocDataUpload.value.findIndex((x: any) => x.__key == file.__key);
+ const index = fileDocDataUpload.value.findIndex(
+ (x: any) => x.__key == file.__key
+ );
if (index > -1) {
fileDocDataUpload.value.splice(index, 1);
}
@@ -810,7 +845,7 @@ const uploadDocData = async () => {
fileDocDataUpload.value.forEach((file: any) => {
formData.append("", file);
});
- loaderPage(true);
+ showLoader();
await http
.put(config.API.periodRecruitDoc(id.value), formData)
.then((res) => {})
@@ -818,7 +853,7 @@ const uploadDocData = async () => {
messageError($q, e);
})
.finally(async () => {
- loaderPage(false);
+ hideLoader();
success($q, "บันทึกข้อมูลสำเร็จ");
clickBack();
});
@@ -834,7 +869,7 @@ const uploadImgData = async () => {
fileImgDataUpload.value.forEach((file: any) => {
formData.append("", file);
});
- loaderPage(true);
+ showLoader();
await http
.put(config.API.periodRecruitImg(id.value), formData)
.then((res) => {})
@@ -842,7 +877,7 @@ const uploadImgData = async () => {
messageError($q, e);
})
.finally(async () => {
- loaderPage(false);
+ hideLoader();
});
}
};
@@ -855,7 +890,9 @@ const fileUploadImg = async (files: any) => {
const fileRemoveImg = async (files: any) => {
files.forEach((file: any) => {
- const index = fileImgDataUpload.value.findIndex((x: any) => x.__key == file.__key);
+ const index = fileImgDataUpload.value.findIndex(
+ (x: any) => x.__key == file.__key
+ );
if (index > -1) {
fileImgDataUpload.value.splice(index, 1);
}
@@ -906,7 +943,7 @@ const sendData = () => {
};
const deleteDocData = async (docId: string) => {
- loaderPage(true);
+ showLoader();
await http
.delete(config.API.periodDeleteDoc(docId))
.then(async () => {
@@ -916,12 +953,12 @@ const deleteDocData = async (docId: string) => {
messageError($q, e);
})
.finally(async () => {
- loaderPage(false);
+ hideLoader();
});
};
const deleteImgData = async (docId: string) => {
- loaderPage(true);
+ showLoader();
await http
.delete(config.API.periodDeleteImg(docId))
.then(async () => {
@@ -931,12 +968,12 @@ const deleteImgData = async (docId: string) => {
messageError($q, e);
})
.finally(async () => {
- loaderPage(false);
+ hideLoader();
});
};
const addData = async () => {
- loaderPage(true);
+ showLoader();
await http
.post(config.API.savePeriod, sendData())
.then(async (res) => {
@@ -949,12 +986,12 @@ const addData = async () => {
messageError($q, e);
})
.finally(async () => {
- loaderPage(false);
+ hideLoader();
});
};
const editData = async (id: string) => {
- loaderPage(true);
+ showLoader();
await http
.put(config.API.editPeriod(id), sendData())
.then(async () => {
@@ -965,7 +1002,7 @@ const editData = async (id: string) => {
messageError($q, e);
})
.finally(async () => {
- loaderPage(false);
+ hideLoader();
});
};
diff --git a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
index 66d0f4751..4439ed10f 100644
--- a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
+++ b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
@@ -129,7 +129,7 @@ const pass = ref(0);
const notpass = ref(0);
const importId = ref(route.params.id as string); // Period Import Id
const mixin = useCounterMixin();
-const { messageError } = mixin;
+const { messageError, showLoader, hideLoader } = mixin;
const filter = ref(""); //search data table
const visibleColumns = ref([
"examID",
@@ -317,12 +317,12 @@ const clickDetail = (examID: string) => {
};
onMounted(async () => {
- loaderPage(false);
+ hideLoader();
await fetchData();
});
const downloadExam = async () => {
- loaderPage(true);
+ showLoader();
await http
.get(config.API.exportDisableExam(importId.value), {
responseType: "blob",
@@ -338,12 +338,12 @@ const downloadExam = async () => {
messageError($q, e);
})
.finally(() => {
- loaderPage(false);
+ hideLoader();
});
};
const downloadPassExam = async () => {
- loaderPage(true);
+ showLoader();
await http
.get(config.API.exportDisablePassExam(importId.value), {
responseType: "blob",
@@ -359,12 +359,12 @@ const downloadPassExam = async () => {
messageError($q, e);
})
.finally(() => {
- loaderPage(false);
+ hideLoader();
});
};
const downloadPassResultExam = async () => {
- loaderPage(true);
+ showLoader();
await http
.get(config.API.exportDisablePassResultExam(importId.value), {
responseType: "blob",
@@ -380,12 +380,12 @@ const downloadPassResultExam = async () => {
messageError($q, e);
})
.finally(() => {
- loaderPage(false);
+ hideLoader();
});
};
const fetchData = async () => {
- loaderPage(true);
+ showLoader();
await http
.post(config.API.getDisableExamResultById(importId.value), {
examAttribute: "",
@@ -416,7 +416,7 @@ const fetchData = async () => {
messageError($q, e);
})
.finally(() => {
- loaderPage(false);
+ hideLoader();
});
};
diff --git a/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue b/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue
index 402f654b5..12046592e 100644
--- a/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue
+++ b/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue
@@ -26,12 +26,16 @@
{{ profile_id }}
-
คำนำหน้านาม
+
+ คำนำหน้านาม
+
{{ prefix }}
-
ชื่อ-นามสกุล
+
+ ชื่อ-นามสกุล
+
{{ fullname }}
@@ -55,17 +59,23 @@
{{ position_name }}
-
สถานศึกษา
+
+ สถานศึกษา
+
{{ university }}
-
วุฒิการศึกษา
+
+ วุฒิการศึกษา
+
{{ degree }}
-
สาขาวิชาเอก
+
+ สาขาวิชาเอก
+
{{ major }}
@@ -118,7 +128,11 @@
>ดาวน์โหลดผลคะแนน
-
+
ดาวน์โหลดเอกสารรับรอง
@@ -138,12 +152,18 @@