From 29f1745d9b3adea6487593718399868c167f04fb Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 25 Sep 2023 14:21:01 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20UI=20?= =?UTF-8?q?=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=8A=20=E0=B8=88=E0=B8=B1=E0=B8=94?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/Tab1.vue | 138 +++++++++++++++++- 1 file changed, 135 insertions(+), 3 deletions(-) diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index f2d6ee999..7c2d08c8a 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -10,6 +10,7 @@ import config from "@/app.config"; import { useRouter } from "vue-router"; import DialogPopupReason from "@/components/Dialogs/PopupReason.vue"; +import DialogInformation from "@/components/Dialogs/Information.vue"; import DialogHeader from "@/components/DialogHeader.vue"; import btnDownloadFile from "./downloadFile.vue"; @@ -34,6 +35,26 @@ const modalAdd = ref(false); const modalEdit = ref(false); const rowid = ref(""); const organization = ref(""); +// หมายเหตุ +const dialogNote = ref(false); +const dialogTitle = ref(""); +const dialogDesc = ref(""); + +// แจ้งเตือน +const dialogWarn = ref(false); +const checkboxData = ref([ + { id: 1, name: "มีโทษทางวินัย", val: true }, + { + id: 2, + name: "ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้นเงินเดือน เนื่องจากลาเกิน", + val: false, + }, + { + id: 3, + name: "ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)", + val: false, + }, +]); const organizationOptions = ref([{ id: "1", name: "ทั้งหมด" }]); const visibleColumns = ref([ @@ -48,6 +69,8 @@ const visibleColumns = ref([ "insigniaSend", "insigniaLevel", "dateSend", + "note", + "warn", ]); // หัวตาราง const columns = ref([ @@ -150,6 +173,24 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "note", + align: "left", + label: "หมายเหตุ", + sortable: true, + field: "", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, + { + name: "warn", + align: "left", + label: "แจ้งเตือน", + sortable: true, + field: "", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, ]); const columns2 = ref([ @@ -183,14 +224,14 @@ const columns2 = ref([ // { // name: "position", // required: true, - // label: "ตำแหน่งในสายงาน", + // label: "หมายเหตุ", // field: "position", // align: "left", // }, // { // name: "level", // required: true, - // label: "ระดับ", + // label: "แจ้งเตื่อน", // field: "level", // align: "left", // }, @@ -587,10 +628,22 @@ const paginationLabel2 = (start: number, end: number, total: number) => { if (paging2.value == true) return " " + start + "-" + end + " ใน " + total; else return start + "-" + end + " ใน " + total; }; - const closeModalEdit = () => { modalEdit.value = false; }; +// เปิด popup หมายเหตุ +const clickShowreson = (name: string, requestNote: string) => { + dialogTitle.value = "หมายเหตุ" + name; + dialogDesc.value = requestNote; + dialogNote.value = true; +}; +// ปิด popup หมายเหตุ +const clickCloseReson = () => { + dialogNote.value = false; +}; +const clickShowWarn = () => { + dialogWarn.value = true; +};