From 4a9ea4024bf5105d9ae47ad4f63845e56d92ffa8 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 28 Aug 2023 10:09:53 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9C=E0=B8=A5=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=97=E0=B8=94=E0=B8=A5=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=9B=E0=B8=8F=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=E0=B8=97=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/05_placement/api.probation.ts | 3 +- .../components/probation/SummaryScore.vue | 438 +++++++++++++----- 2 files changed, 323 insertions(+), 118 deletions(-) diff --git a/src/api/05_placement/api.probation.ts b/src/api/05_placement/api.probation.ts index 7254dc5f9..ac67914a9 100644 --- a/src/api/05_placement/api.probation.ts +++ b/src/api/05_placement/api.probation.ts @@ -60,7 +60,8 @@ export default { - summarySurveyDetail:(id:string) => `${evaluate}/survey?assign_id=${id}` + summarySurveyDetail:(id:string) => `${evaluate}/survey?assign_id=${id}`, + summaryReportDetail:(id:string) => `${evaluate}/report?assign_id=${id}` diff --git a/src/modules/05_placement/components/probation/SummaryScore.vue b/src/modules/05_placement/components/probation/SummaryScore.vue index 20ab6fe58..0f072618f 100644 --- a/src/modules/05_placement/components/probation/SummaryScore.vue +++ b/src/modules/05_placement/components/probation/SummaryScore.vue @@ -30,6 +30,30 @@ const score2 = ref(0); const score3 = ref(0); const Allscore = ref(0); +const develop_orientation_score = ref(); +const develop_self_learning_score = ref(); +const develop_training_seminar_score = ref(); +const develop_other_training_score = ref(); +const develop_total_score = ref(); +const develop_orientation_percent = ref(); +const develop_self_learning_percent = ref(); +const develop_training_seminar_percent = ref(); +const develop_other_training_percent = ref(); +const develop_total_percent = ref(); +const develop_result = ref(); +const achievement_score = ref(); +const achievement_score_total = ref(); +const achievement_percent = ref(); +const achievement_result = ref(); +const behavior_score = ref(); +const behavior_score_total = ref(); +const behavior_percent = ref(); +const behavior_result = ref(); +const sum_score = ref(); +const sum_percent = ref(); +const reason = ref(); +const pass_result = ref(); +const evaluate_date = ref(); const result = ref(); const result_option = ref([ { name: "ผ่าน", value: 1 }, @@ -49,31 +73,64 @@ const edit = () => { const cancel = () => { status.value = false; }; +const getReportScore = async () => { + await http.get(config.API.summaryReportDetail(assignId.value)).then((res) => { + const data = res.data.data; + develop_orientation_score.value = data.develop_orientation_score; + develop_self_learning_score.value = data.develop_self_learning_score; + develop_training_seminar_score.value = data.develop_training_seminar_score; + develop_other_training_score.value = data.develop_other_training_score; + develop_total_score.value = data.develop_total_score; + develop_orientation_percent.value = data.develop_orientation_percent; + develop_self_learning_percent.value = data.develop_self_learning_percent; + develop_training_seminar_percent.value = + data.develop_training_seminar_percent; + develop_other_training_percent.value = data.develop_other_training_percent; + develop_total_percent.value = data.develop_total_percent; + develop_result.value = data.develop_result; + achievement_score.value = data.achievement_score; + achievement_score_total.value = data.achievement_score_total; + achievement_percent.value = data.achievement_percent; + achievement_result.value = data.achievement_result; + + behavior_score.value = data.behavior_score; + behavior_score_total.value = data.behavior_score_total; + behavior_percent.value = data.behavior_percent; + behavior_result.value = data.behavior_result; + + sum_score.value = data.sum_score; + sum_percent.value = data.sum_percent; + + reason.value = data.reason; + pass_result.value = data.pass_result; + evaluate_date.value = data.evaluate_date; + }); +}; onMounted(() => { - // fecthResult(assignId.value); + getReportScore(); }); // const fecthResult = async (id: string) => { - // await http - // .get(config.API.createformReport(id)) - // .then((res: any) => { - // let data = res.data.data.evaluate; - // console.log(data); - // date_start.value = data.date_start; - // date_finish.value = data.date_finish; - // develop.value = Number(data.develop_complete); - // result.value = Number(data.pass_result); - // reson.value = data.reson; - // chairman_dated.value = data.chairman_dated; - // director1_dated.value = data.director1_dated; - // director2_dated.value = data.director2_dated; - // status.value = false; - // action.value = 'edit'; - // }) - // .catch((e) => { - // console.log(e); - // }); +// await http +// .get(config.API.createformReport(id)) +// .then((res: any) => { +// let data = res.data.data.evaluate; +// console.log(data); +// date_start.value = data.date_start; +// date_finish.value = data.date_finish; +// develop.value = Number(data.develop_complete); +// result.value = Number(data.pass_result); +// reson.value = data.reson; +// chairman_dated.value = data.chairman_dated; +// director1_dated.value = data.director1_dated; +// director2_dated.value = data.director2_dated; +// status.value = false; +// action.value = 'edit'; +// }) +// .catch((e) => { +// console.log(e); +// }); // }; @@ -81,100 +138,247 @@ onMounted(() => {
ผลการประเมินการทดลองปฏิบัติหน้าที่ราชการ
- -
-
- -
-
-
หัวข้อ
-
คะแนน
-
-
- -
-
1. คะแนนผลสัมฤทธิ์การทดลองปฏิบัติหน้าที่ราชการ
-
- -
-
- -
-
2. คะแนนพฤติกรรมการปฏิบัติราชการ
-
- -
-
- -
-
3. คะแนนผลการพัฒนาข้าราชการที่อยู่ระหว่างการทดลองปฏิบัติหน้าที่ราชการ
-
- -
-
- - -
-
-
ผลคะแนนรวมการประเมินการทดลอง
-
{{ Allscore }}
-
+
+
+
+ 1 + ผลการประเมิน
+
+ + + + + + + 1. คะแนนผลสัมฤทธิ์การทดลองปฏิบัติหน้าที่ราชการ + + + +
+
คะแนน
+
ร้อยละ
+
+
+ +
+
{{ achievement_score }}
+
{{ achievement_percent }}
+
+
+
+ + + ผ่าน (สูงกว่าร้อยละ 60) + + + ไม่ผ่าน (ต่ำกว่าร้อยละ 60) + +
+
+
+ + + + + + + 2. คะแนนพฤติกรรมการปฏิบัติราชการ + + + +
+
คะแนน
+
ร้อยละ
+
+
+ +
+
{{ behavior_score }}
+
{{ behavior_percent }}
+
+
+
+ + ผ่าน (สูงกว่าร้อยละ 60) + + + ไม่ผ่าน (ต่ำกว่าร้อยละ 60) + +
+
-
+ + + + + ผลคะแนนรวมการประเมินการทดลอง + + + +
+
คะแนน
+
ร้อยละ
+
+
+ +
+
{{ sum_score }}
+
{{ sum_percent }}
+
+
+
+ + + ผ่าน (สูงกว่าร้อยละ 60) + + + ไม่ผ่าน (ต่ำกว่าร้อยละ 60) + +
+
+
+
+
+
+
+ 2 + การพัฒนาผู้ทดลองปฏิบัติบัติหน้าที่ราชการ +
+ +
+
+
หัวข้อ
+
คะแนน
+
ร้อยละ
+
+
+ +
+
1. การปฐมนิเทศ
+
+ +
+
+ +
+
+ +
+
2. การเรียนรู้ด้วยตนเอง
+
+ +
+
+ +
+
+ +
+
3. การอบรมสัมนาร่วมกัน
+
+ +
+
+ +
+
+ +
+
+ 4. การอบรมอื่น ๆ ตามที่หน่วยงานกำหนด (ถ้ามี) +
+
+ +
+
+ +
+
+ + +
+
+
+ คะแนนผลการพัฒนาข้าราชการที่อยู่ระหว่างการทดลองปฏิบัติหน้าที่ราชการ +
+
{{ develop_result }}
+
{{ develop_total_percent }}
+
+
+
+ ผ่าน (สูงกว่าร้อยละ 60) +
+
+ ไม่ผ่าน (ต่ำกว่าร้อยละ 60) +
+
+
+
+
+
+
+
เหตุผลอื่น ๆ ในการพิจารณา
@@ -182,7 +386,7 @@ onMounted(() => { outlined dense class="col-12" - v-model="note" + v-model="reason" lazy-rules autogrow hide-bottom-space @@ -192,7 +396,7 @@ onMounted(() => { />
-
+
@@ -221,7 +425,7 @@ onMounted(() => {
{ dense :disable="!status" class="full-width datepicker" - :model-value=" - date != null ? date2Thai(date) : null - " + :model-value="evaluate_date != null ? date2Thai(evaluate_date) : null" :label="`${'วัน เดือน ปี ที่ประเมิน'}`" :rules="[(val) => !!val || `${'วัน เดือน ปี ที่ประเมิน'}`]" > @@ -282,7 +484,9 @@ onMounted(() => { .q-rating__icon { text-shadow: transparent !important; } - +.color-txt{ + color: black!important;; +} .q-card { box-shadow: 0px 0px 0px 0px !important; }