From 3ee1ed90737af59eb9f0538e586bf414adfe1dba Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 10 Jan 2025 10:31:45 +0700 Subject: [PATCH 01/11] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=9C=E0=B8=B4=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../11_probation/component/07_EvaluateReport.vue | 2 +- .../component/addPage/01_addresult.vue | 10 +++++----- .../component/addPage/02_addevaluacommander.vue | 8 ++++---- .../11_probation/component/editPage/01_result.vue | 10 +++++----- src/modules/11_probation/store/probation.ts | 14 +++++++------- .../components/02_ResultPage.vue | 2 +- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/modules/11_probation/component/07_EvaluateReport.vue b/src/modules/11_probation/component/07_EvaluateReport.vue index c4ac7bd..f47e11d 100644 --- a/src/modules/11_probation/component/07_EvaluateReport.vue +++ b/src/modules/11_probation/component/07_EvaluateReport.vue @@ -362,7 +362,7 @@ onMounted(() => {
2 - การพัฒนาผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + การพัฒนาผู้ทดลองปฏิบัติหน้าที่ราชการ
diff --git a/src/modules/11_probation/component/addPage/01_addresult.vue b/src/modules/11_probation/component/addPage/01_addresult.vue index 9bd858e..46c58f1 100644 --- a/src/modules/11_probation/component/addPage/01_addresult.vue +++ b/src/modules/11_probation/component/addPage/01_addresult.vue @@ -499,7 +499,7 @@ onMounted(async () => {
1 - ผลสัมฤทธิ์ของการทดลองปฏิบัติบัติหน้าที่ราชการ + ผลสัมฤทธิ์ของการทดลองปฏิบัติหน้าที่ราชการ
@@ -919,7 +919,7 @@ onMounted(async () => { color="grey-4" class="q-pr-sm" /> - 1.4. สมมรถนะ @@ -967,7 +967,7 @@ onMounted(async () => { - 1.4. สมมรถนะ @@ -1533,7 +1533,7 @@ onMounted(async () => {
2 - พฤติกรรมของผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + พฤติกรรมของผู้ทดลองปฏิบัติหน้าที่ราชการ
@@ -1882,7 +1882,7 @@ onMounted(async () => {
3 - การพัฒนาผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + การพัฒนาผู้ทดลองปฏิบัติหน้าที่ราชการ
diff --git a/src/modules/11_probation/component/addPage/02_addevaluacommander.vue b/src/modules/11_probation/component/addPage/02_addevaluacommander.vue index 3e7de8b..db80751 100644 --- a/src/modules/11_probation/component/addPage/02_addevaluacommander.vue +++ b/src/modules/11_probation/component/addPage/02_addevaluacommander.vue @@ -523,7 +523,7 @@ onMounted(async () => {
1 - ผลสัมฤทธิ์ของการทดลองปฏิบัติบัติหน้าที่ราชการ + ผลสัมฤทธิ์ของการทดลองปฏิบัติหน้าที่ราชการ
@@ -811,7 +811,7 @@ onMounted(async () => { - 1.4. สมมรถนะ @@ -1160,7 +1160,7 @@ onMounted(async () => {
2 - พฤติกรรมของผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + พฤติกรรมของผู้ทดลองปฏิบัติหน้าที่ราชการ
@@ -1429,7 +1429,7 @@ onMounted(async () => {
3 - การพัฒนาผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + การพัฒนาผู้ทดลองปฏิบัติหน้าที่ราชการ
{
1 - ผลสัมฤทธิ์ของการทดลองปฏิบัติบัติหน้าที่ราชการ + ผลสัมฤทธิ์ของการทดลองปฏิบัติหน้าที่ราชการ
@@ -1073,7 +1073,7 @@ onMounted(async () => { - 1.4. สมมรถนะ @@ -1118,7 +1118,7 @@ onMounted(async () => { - 1.4. สมมรถนะ @@ -1649,7 +1649,7 @@ onMounted(async () => {
2 - พฤติกรรมของผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + พฤติกรรมของผู้ทดลองปฏิบัติหน้าที่ราชการ
@@ -2001,7 +2001,7 @@ onMounted(async () => {
3 - การพัฒนาผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + การพัฒนาผู้ทดลองปฏิบัติหน้าที่ราชการ
diff --git a/src/modules/11_probation/store/probation.ts b/src/modules/11_probation/store/probation.ts index 2f46d37..56ec9d4 100644 --- a/src/modules/11_probation/store/probation.ts +++ b/src/modules/11_probation/store/probation.ts @@ -16,7 +16,7 @@ export const useProbationStore = defineStore("probationStore", () => { const behavior_no1 = [ { id: "1", label: "ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี" }, - { id: "2", label: "มีความรับผิดชอบในการปฏิบัติบัติงาน" }, + { id: "2", label: "มีความรับผิดชอบในการปฏิบัติงาน" }, { id: "3", label: @@ -24,17 +24,17 @@ export const useProbationStore = defineStore("probationStore", () => { }, { id: "4", - label: "ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร", + label: "ตั้งใจปฏิบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร", }, ]; const behavior_no2 = [ { id: "1", - label: "อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ", + label: "อุทิศตนและเสียสละเวลาในการปฏิบัติงานอย่างเต็มกำลังความสามารถ", }, { id: "2", - label: "มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต", + label: "มีจิตสำนึกที่ดี ปฏิบัติงานด้วยความซื่อสัตย์ สุจริต", }, { id: "3", @@ -43,10 +43,10 @@ export const useProbationStore = defineStore("probationStore", () => { }, ]; const behavior_no3 = [ - { id: "1", label: "มีความรับรัผิดชอบในการรักษาเวลาทำงาน" }, + { id: "1", label: "มีความรับผิดชอบในการรักษาเวลาทำงาน" }, { id: "2", - label: "แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ", + label: "แต่งกายในการปฏิบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ", }, { id: "3", @@ -60,7 +60,7 @@ export const useProbationStore = defineStore("probationStore", () => { }, { id: "5", - label: "ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึดหลักจรรยาบรรณวิชาชีพ", + label: "ปฏิบัติหน้าที่อย่างตรงไปตรงมาโดยยึดหลักจรรยาบรรณวิชาชีพ", }, ]; const ratingColors = ref([ diff --git a/src/modules/15_probationReport/components/02_ResultPage.vue b/src/modules/15_probationReport/components/02_ResultPage.vue index 553f2c5..c3d12be 100644 --- a/src/modules/15_probationReport/components/02_ResultPage.vue +++ b/src/modules/15_probationReport/components/02_ResultPage.vue @@ -229,7 +229,7 @@ onMounted(async () => {
2 - การพัฒนาผู้ทดลองปฏิบัติบัติหน้าที่ราชการ + การพัฒนาผู้ทดลองปฏิบัติหน้าที่ราชการ
Date: Fri, 10 Jan 2025 11:49:13 +0700 Subject: [PATCH 02/11] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20fo?= =?UTF-8?q?rmat=20=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=A7=E0=B8=A2=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/mixin.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index dcc87b0..84e1479 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -1031,28 +1031,28 @@ export const useCounterMixin = defineStore("mixin", () => { if (obj) { let name = obj.child4 != null && obj.child3 != null - ? obj.child4 + "/" + ? obj.child4 + " " : obj.child4 != null ? obj.child4 : ""; name += obj.child3 != null && obj.child2 != null - ? obj.child3 + "/" + ? obj.child3 + " " : obj.child3 !== null ? obj.child3 : ""; name += obj.child2 != null && obj.child1 != null - ? obj.child2 + "/" + ? obj.child2 + " " : obj.child2 != null ? obj.child2 : ""; name += obj.child1 != null && obj.root != null - ? obj.child1 + "/" + ? obj.child1 + " " : obj.child1 != null ? obj.child1 : ""; @@ -1106,28 +1106,28 @@ export const useCounterMixin = defineStore("mixin", () => { if (obj) { let name = obj.child4Old != null && obj.child3Old != null - ? obj.child4Old + "/" + ? obj.child4Old + " " : obj.child4Old != null ? obj.child4Old : ""; name += obj.child3Old != null && obj.child2Old != null - ? obj.child3Old + "/" + ? obj.child3Old + " " : obj.child3Old !== null ? obj.child3Old : ""; name += obj.child2Old != null && obj.child1Old != null - ? obj.child2Old + "/" + ? obj.child2Old + " " : obj.child2Old != null ? obj.child2Old : ""; name += obj.child1Old != null && obj.rootOld != null - ? obj.child1Old + "/" + ? obj.child1Old + " " : obj.child1Old != null ? obj.child1Old : ""; @@ -1136,8 +1136,6 @@ export const useCounterMixin = defineStore("mixin", () => { } else { return ""; } - - } function onSearchDataTable(keyword: string, data: any[], columns: any[]) { @@ -1198,6 +1196,6 @@ export const useCounterMixin = defineStore("mixin", () => { findPosMasterNoOld, findOrgNameOld, findPosMasterNo, - onSearchDataTable + onSearchDataTable, }; }); From 90095f2c705db5563932dc9ff213dc584c67b19a Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 10 Jan 2025 15:54:09 +0700 Subject: [PATCH 03/11] fix bug evaluate --- .../06_evaluate/components/EvaluateStepMain.vue | 4 +++- src/modules/06_evaluate/components/step/step6.vue | 14 +++++++------- src/modules/06_evaluate/store.ts | 3 +++ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/modules/06_evaluate/components/EvaluateStepMain.vue b/src/modules/06_evaluate/components/EvaluateStepMain.vue index c06916f..c35f763 100644 --- a/src/modules/06_evaluate/components/EvaluateStepMain.vue +++ b/src/modules/06_evaluate/components/EvaluateStepMain.vue @@ -107,7 +107,7 @@ async function validateForm() { nextTostep3(); } } else { - if (store.statusUpload === false) { + if (store.statusUpload6 === false) { saveStep6(); } else { nextTostep7(); @@ -458,6 +458,7 @@ async function nextTostep3() { ) .then(() => { route.params.id && fetchCheckStep(route.params.id.toString()); + store.statusUpload = false; }) .catch((err) => { messageError($q, err); @@ -500,6 +501,7 @@ async function saveStep6() { subjectDoc2: formCommand.subject, assignedPosition: formCommand.assignedPosition, }; + dialogConfirm( $q, async () => { diff --git a/src/modules/06_evaluate/components/step/step6.vue b/src/modules/06_evaluate/components/step/step6.vue index 7be5888..7a37b25 100644 --- a/src/modules/06_evaluate/components/step/step6.vue +++ b/src/modules/06_evaluate/components/step/step6.vue @@ -152,10 +152,10 @@ async function fetcheSigner(id: string) { formCommand.subject = data.subjectDoc2; formCommand.assignedPosition = data.assignedPosition; - store.statusUpload = true; + store.statusUpload6 = data.commanderFullnameDoc2 === null ? false : true; }) .catch(() => { - store.statusUpload = false; + store.statusUpload6 = false; getCommander(); }) .finally(() => { @@ -234,10 +234,10 @@ watch( } ); watch( - () => store.statusUpload, + () => store.statusUpload6, () => { setTimeout(() => { - store.statusUpload && updateInput(formCommand); + store.statusUpload6 && updateInput(formCommand); }, 200); } ); @@ -249,7 +249,7 @@ onMounted(async () => { formCommand.author = user.name; } checkDoc(); - if (store.currentStep > 2) { + if (store.currentStep >= 6) { fetcheSigner(evaluateId.value); } await fetchCheckDate(); @@ -433,7 +433,7 @@ onMounted(async () => {
{