From b1f7d9ece75692fd1a39841166645c0155360cde Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 31 May 2024 14:50:53 +0700 Subject: [PATCH 01/12] =?UTF-8?q?=E0=B8=97=E0=B8=B8=E0=B8=99=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=A8=E0=B8=B6=E0=B8=81=E0=B8=A9=E0=B8=B2?= =?UTF-8?q?=3D>=20=20fix=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/scholarship/DetailView.vue | 39 ++++++++++--------- .../interface/response/Scholarship.ts | 1 + 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/modules/15_development/components/scholarship/DetailView.vue b/src/modules/15_development/components/scholarship/DetailView.vue index fbdd3f0f8..a21c5f3a0 100644 --- a/src/modules/15_development/components/scholarship/DetailView.vue +++ b/src/modules/15_development/components/scholarship/DetailView.vue @@ -172,6 +172,7 @@ function fetchDataDetail(id: string) { .then((res) => { const data: DataSholarship = res.data.result; console.log(data); + formBody.profileId = data.profileId; formBody.rank = data.rank; formBody.prefix = data.prefix; formBody.firstName = data.firstName; @@ -382,7 +383,7 @@ function onClickUpdateStatus(type: string) { /** * update date - * @param startDate วันที่เริ่ม + * @param startDate วันที่เริ่ม * @param endDate วันที่สิ้นสุด * @param toDo true/false */ @@ -483,25 +484,25 @@ async function checkFileBackReceived(id: string) { function downloadFileBackReceived() { showLoader(); if (scholarshipId.value !== null && fileBackReceived.value !== null) { - http - .get( - config.API.fileByFile( - "ระบบพัฒนาบุคคล", - "ฟอร์มรายงานตัวกลับเข้ารับราชการ", - scholarshipId.value, - fileBackReceived.value + http + .get( + config.API.fileByFile( + "ระบบพัฒนาบุคคล", + "ฟอร์มรายงานตัวกลับเข้ารับราชการ", + scholarshipId.value, + fileBackReceived.value + ) ) - ) - .then((res) => { - const data = res.data.downloadUrl; - window.open(data, "_blank"); - }) - .catch((e) => { - messageError($q, e); - }) - .finally(async () => { - hideLoader(); - }); + .then((res) => { + const data = res.data.downloadUrl; + window.open(data, "_blank"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(async () => { + hideLoader(); + }); } } diff --git a/src/modules/15_development/interface/response/Scholarship.ts b/src/modules/15_development/interface/response/Scholarship.ts index 16b58f81f..1d3215ff8 100644 --- a/src/modules/15_development/interface/response/Scholarship.ts +++ b/src/modules/15_development/interface/response/Scholarship.ts @@ -9,6 +9,7 @@ interface ListSholarship { } interface DataSholarship { + profileId: string rank: string; //ยศ prefix: string; //คำนำหน้าชื่อ firstName: string; //ชื่อ From 2fc79f2c6371efa8685816d8e6a4631c36c132a0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 4 Jun 2024 17:11:29 +0700 Subject: [PATCH 02/12] =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=B2=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3=20=20=3D>=20fix=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/position/01ListPosition.vue | 1 - .../components/position/02ListType.vue | 4 + .../components/position/05ListLevelDetail.vue | 194 +++++++++--------- .../components/position/DialogAddPosition.vue | 21 +- 4 files changed, 117 insertions(+), 103 deletions(-) diff --git a/src/modules/01_metadataNew/components/position/01ListPosition.vue b/src/modules/01_metadataNew/components/position/01ListPosition.vue index b82951a82..ea3e89c51 100644 --- a/src/modules/01_metadataNew/components/position/01ListPosition.vue +++ b/src/modules/01_metadataNew/components/position/01ListPosition.vue @@ -181,7 +181,6 @@ function copyDetiail(data: RowDetailPositions) { * @param data ข้อมูลตำแหน่ง */ function editDetiail(data: RowDetailPositions) { - console.log(data); formPositionSelect.positionId = data.id; formPositionSelect.posTypeId = data.posTypeId; formPositionSelect.positionName = data.positionName; diff --git a/src/modules/01_metadataNew/components/position/02ListType.vue b/src/modules/01_metadataNew/components/position/02ListType.vue index dea3afed2..a7512e662 100644 --- a/src/modules/01_metadataNew/components/position/02ListType.vue +++ b/src/modules/01_metadataNew/components/position/02ListType.vue @@ -162,6 +162,8 @@ onMounted(async () => { function closeDialog() { dialog.value = false; + posTypeName.value = ""; + posTypeRank.value = null; } function onclickDetail(id: string) { @@ -322,6 +324,7 @@ async function onSubmit() { borderless :rules="[(val) => val.length > 0 || 'กรุณากรอกประเภทตำแหน่ง']" hide-bottom-space + class="inputgreen" />
@@ -337,6 +340,7 @@ async function onSubmit() { :rules="[(val) => val != undefined || 'กรุณากรอกระดับตำแหน่ง']" hide-bottom-space mask="############" + class="inputgreen" />
diff --git a/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue b/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue index 44888f062..2d6146bb2 100644 --- a/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue +++ b/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue @@ -374,102 +374,106 @@ onMounted(async () => { - - - -
- - - - - - -
- -
- -
- -
- -
- -
- -
- -
-
- - - - บันทึกข้อมูล - - - -
-
+ + + +
+ + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + + + บันทึกข้อมูล + + + +
+