From 1689c96343c8088f44e6ad89cbc344e4e9c22fa7 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 30 Jan 2025 11:58:20 +0700 Subject: [PATCH 1/4] fixing no probation --- .../components/probation/FormEvaluation/Header.vue | 9 ++++++++- .../components/probation/FormEvaluation/Template1.vue | 1 + .../probation/FormEvaluation/Template1Commader.vue | 1 + .../components/probation/FormEvaluation/Template2.vue | 1 + .../probation/FormEvaluation/Template2Format2.vue | 1 + 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/modules/05_placement/components/probation/FormEvaluation/Header.vue b/src/modules/05_placement/components/probation/FormEvaluation/Header.vue index c92247eda..cad752085 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/Header.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/Header.vue @@ -21,6 +21,13 @@ const props = defineProps({ loop: { type: Number, }, + isMax: { + required: false, + type: Boolean, + default() { + return false; + }, + }, addData: { type: Function, default() { @@ -114,7 +121,7 @@ function nextPage() {
{ :loop="probationStore.tabs.length" :FileDownload="FileDownload" :checkPermission="probationStore?.dataPermissions?.tab2?.isEdit as boolean" + :is-max="probationStore.tabs.length === 3" /> { :loop="probationStore.tabs.length" :FileDownload="FileDownload" :checkPermission="probationStore?.dataPermissions?.tab3?.isEdit as boolean" + :is-max="probationStore.tabs.length === 3" /> { :add-data="addData" :FileDownload="FileDownload" :checkPermission="probationStore?.dataPermissions?.tab4?.isEdit as boolean" + :is-max="tabs.length === 2" /> { :add-data="addData" :FileDownload="FileDownload" :checkPermission="probationStore?.dataPermissions?.tab5?.isEdit as boolean" + :is-max="tabs.length === 2" /> Date: Thu, 30 Jan 2025 12:42:51 +0700 Subject: [PATCH 2/4] probation check result --- .../FormEvaluation/TemplateSummaryScore.vue | 2 +- .../components/probation/SummaryScore.vue | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/modules/05_placement/components/probation/FormEvaluation/TemplateSummaryScore.vue b/src/modules/05_placement/components/probation/FormEvaluation/TemplateSummaryScore.vue index e8e4fd01f..57074abae 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/TemplateSummaryScore.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/TemplateSummaryScore.vue @@ -83,7 +83,7 @@ onMounted(() => {
- ยังไม่ได้ดำเนินการแบบประเมินผล + ยังไม่ได้รายงานผลการประเมินฯ
diff --git a/src/modules/05_placement/components/probation/SummaryScore.vue b/src/modules/05_placement/components/probation/SummaryScore.vue index dbf1e8166..c75bfc2c8 100644 --- a/src/modules/05_placement/components/probation/SummaryScore.vue +++ b/src/modules/05_placement/components/probation/SummaryScore.vue @@ -55,6 +55,7 @@ const result_option = reactive([ }, ]); +const checkDisplay = ref(null); /** get คะแนน */ async function getReportScore() { showLoader(); @@ -98,6 +99,10 @@ async function getReportScore() { reason.value = data.reason; pass_result.value = data.pass_result; evaluate_date.value = data.evaluate_date; + checkDisplay.value = true; + }) + .catch((e) => { + checkDisplay.value = false; }) .finally(() => { hideLoader(); @@ -111,7 +116,12 @@ onMounted(() => {