From cc3f375ca9d3a3d89dfb3f003ae9a5d18843c87f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 23 Aug 2023 14:46:37 +0700 Subject: [PATCH] no message --- .../probation/FormEvaluation/FormEvaluate.vue | 446 ++++++++++++---- .../FormEvaluation/FormEvaluateScore.vue | 497 ++++++++++++++---- 2 files changed, 748 insertions(+), 195 deletions(-) diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue index 4608bcd43..38cf78661 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue @@ -29,8 +29,8 @@ const assignId = ref(route.params.form.toString()); const personalId = ref(route.params.personalId.toString()); const saveEdit = (id: string) => { - dialogConfirm($q, () => console.log("save")) -} + dialogConfirm($q, () => console.log("save")); +}; const edit = () => { status.value = true; @@ -54,7 +54,7 @@ const dataArr = ref(); const props = defineProps({ tab: String, data: Object, - action: String + action: String, }); const list2_1 = [ @@ -108,7 +108,7 @@ onMounted(async () => { // fecthFormdata(); // } // console.log("props===>", props) - if (props.tab && props.action == 'edit') { + if (props.tab && props.action == "edit") { evaluate_no.value = Number(props.tab.charAt(4)); dataArr.value = await props.data; fecthAssign(); @@ -116,13 +116,13 @@ onMounted(async () => { }); watch(props, async () => { - if (props.tab && props.action == 'edit') { + if (props.tab && props.action == "edit") { evaluate_no.value = Number(props.tab.charAt(4)); dataArr.value = await props.data; fecthAssign(); // console.log("props===>", props); } -}) +}); // onMounted(async () => { // if (props.tab !== undefined) { @@ -138,7 +138,7 @@ const fecthAssign = async () => { await http .get(config.API.evaluateCreate(assignId.value)) .then(async (res: any) => { - if (props.action == 'add') { + if (props.action == "add") { person.value = res.data.data.person; assign.value = res.data.data.assign; commander.value = res.data.data.commander; @@ -148,7 +148,6 @@ const fecthAssign = async () => { evaluate_no.value = res.data.data.evaluate_no; start_date.value = res.data.data.start_date; date_finish.value = res.data.data.end_date; - } // console.log(props.tab, res.data.data.evaluate_no); @@ -158,8 +157,9 @@ const fecthAssign = async () => { }) .catch((e) => { messageError($q, e); - }).finally(() => { - if (props.action == 'edit') { + }) + .finally(() => { + if (props.action == "edit") { fetchEvaluate(); } hideLoader(); @@ -210,13 +210,10 @@ const fetchEvaluate = async () => { data.achievement_other_level !== null ) { etc.value = true; - } - if ( - data.behavior_other_desc !== "" && - data.behavior_other_level !== null - ) { + } else etc.value = false; + if (data.behavior_other_desc !== "" && data.behavior_other_level !== null) { etc2.value = true; - } + } else etc2.value = false; status.value = false; // }) // .catch((e) => { @@ -346,7 +343,10 @@ const save = () => { dialogConfirm($q, async () => { await http - .put(config.API.editFormEvaluateCommader(assignId.value, evaluate_id.value), data) + .put( + config.API.editFormEvaluateCommader(assignId.value, evaluate_id.value), + data + ) .then((res: any) => { // console.log(res); status.value = false; @@ -356,7 +356,7 @@ const save = () => { messageError($q, e); }); }); -}; +}; diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue index 198fcb10b..d6d71383e 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluateScore.vue @@ -27,8 +27,8 @@ const route = useRoute(); const assignId = ref(route.params.form.toString()); const personalId = ref(route.params.personalId.toString()); const saveEdit = (id: string) => { - dialogConfirm($q, () => console.log("save")) -} + dialogConfirm($q, () => console.log("save")); +}; const edit = () => { status.value = true; // console.log(status.value); @@ -53,7 +53,7 @@ const round = ref(); const props = defineProps({ tab: String, data: Object, - action: String + action: String, }); onMounted(async () => { @@ -61,7 +61,7 @@ onMounted(async () => { // fecthFormdata(); // } // console.log("props===>", props) - if (props.tab && props.action == 'edit') { + if (props.tab && props.action == "edit") { evaluate_no.value = Number(props.tab.charAt(4)); dataArr.value = await props.data; fecthAssign(); @@ -69,13 +69,13 @@ onMounted(async () => { }); watch(props, async () => { - if (props.tab && props.action == 'edit') { + if (props.tab && props.action == "edit") { evaluate_no.value = Number(props.tab.charAt(4)); dataArr.value = await props.data; fecthAssign(); // console.log("props===>", props); } -}) +}); // onMounted(() => { // if (props.tab !== undefined) { @@ -91,7 +91,7 @@ const fecthAssign = async () => { .get(config.API.evaluateChairman(assignId.value)) .then(async (res: any) => { // console.log(res); - if (props.action == 'add') { + if (props.action == "add") { assign.value = res.data.data.assign; evaluate_no.value = res.data.data.evaluate_no; start_date.value = res.data.data.start_date; @@ -105,7 +105,7 @@ const fecthAssign = async () => { messageError($q, e); }) .finally(() => { - if (props.action == 'edit') { + if (props.action == "edit") { fetchEvaluate(); } hideLoader(); @@ -159,13 +159,10 @@ const fetchEvaluate = async () => { data.achievement_other_level !== null ) { etc.value = true; - } - if ( - data.behavior_other_desc !== "" && - data.behavior_other_level !== null - ) { + } else etc.value = false; + if (data.behavior_other_desc !== "" && data.behavior_other_level !== null) { etc2.value = true; - } + } else etc2.value = false; status.value = false; // }) @@ -452,14 +449,15 @@ const putformData = () => { dialogConfirm($q, async () => { console.log("data==>", data); await http - .put(config.API.editFormEvaluateChairman(assignId.value, evaluate_id.value), data) + .put( + config.API.editFormEvaluateChairman(assignId.value, evaluate_id.value), + data + ) .then((res: any) => { // console.log(res); status.value = false; success($q, "บันทึกสำเร็จ"); - router.push( - `/probation/detail/${personalId.value}/${assignId.value}` - ); + router.push(`/probation/detail/${personalId.value}/${assignId.value}`); }) .catch((e: any) => { messageError($q, e); @@ -501,7 +499,13 @@ const putformData = () => {
แบบประเมินผล (คณะกรรมการ)
- + แก้ไขข้อมูล
@@ -509,12 +513,16 @@ const putformData = () => { ยกเลิก - + บันทึกข้อมูล - -
@@ -554,11 +562,19 @@ const putformData = () => { - 1.1. ความสามารถในการเรียนรู้งาน + 1.1. ความสามารถในการเรียนรู้งาน - + @@ -586,11 +602,19 @@ const putformData = () => { - 1.2. ความสามารถในการปรับใช้ความรู้กับงานในหน้าที่ + 1.2. ความสามารถในการปรับใช้ความรู้กับงานในหน้าที่ - + @@ -618,11 +642,19 @@ const putformData = () => { - 1.3. ความสำเร็จของงานที่ได้รับมอบหมาย + 1.3. ความสำเร็จของงานที่ได้รับมอบหมาย - + @@ -651,9 +683,15 @@ const putformData = () => { 1.4 อื่นๆ - + @@ -664,15 +702,32 @@ const putformData = () => { - + ]" + /> - + @@ -725,15 +780,27 @@ const putformData = () => { 2.1 ความประพฤติ
- + {{ list.label }} - + @@ -761,15 +828,27 @@ const putformData = () => { 2.2 ความมีคุณธรรมจริยธรรม
- + {{ list.label }} - + @@ -797,15 +876,27 @@ const putformData = () => { 2.3 การรักษาวินัย - + {{ list.label }} - + @@ -832,23 +923,50 @@ const putformData = () => {
2.4 อื่นๆ - +
- + - + ]" + /> - + @@ -906,7 +1024,8 @@ const putformData = () => { - 3.1. ผลสัมฤทธิ์ของการทดลองปฏิบัติบัติหน้าที่ราชการ + 3.1. ผลสัมฤทธิ์ของการทดลองปฏิบัติบัติหน้าที่ราชการ @@ -938,7 +1057,8 @@ const putformData = () => { - 3.2. พฤติกรรมของผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + 3.2. พฤติกรรมของผู้ทดลองปฏิบัติบัติหน้าที่ราชการ @@ -1010,34 +1130,68 @@ const putformData = () => {
ร้อยละ
- +
1. การปฐมนิเทศ
- +
- +
2. การเรียนรู้ด้วยตนเอง
- +
- +
3. การอบรมสัมนาร่วมกัน
- +
- +
@@ -1046,10 +1200,20 @@ const putformData = () => { 4. การอบรมอื่น ๆ ตามที่หน่วยงานกำหนด (ถ้ามี)
- +
- +