From 8532079f838b1a27721c1d515c9ef121e3a58370 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 10 Jan 2024 16:11:53 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=20=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interface/request/main/main.ts | 2 +- .../components/1_Work/DialogReport.vue | 297 +++++++++++ .../{DetailReport.vue => LeaveReport.vue} | 493 ++++-------------- src/modules/09_leave/router.ts | 42 +- .../09_leave/views/ChangeRoundMain.vue | 2 +- src/modules/09_leave/views/ReportMain.vue | 53 -- src/modules/09_leave/views/WorkingMain.vue | 24 +- 7 files changed, 452 insertions(+), 461 deletions(-) create mode 100644 src/modules/09_leave/components/1_Work/DialogReport.vue rename src/modules/09_leave/components/3_Report/{DetailReport.vue => LeaveReport.vue} (62%) delete mode 100644 src/modules/09_leave/views/ReportMain.vue diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index f72796574..53631b4ff 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -409,7 +409,7 @@ const menuList = readonly([ { key: 9.6, label: "รายงานสถิติ", - path: "/statistics-report", + path: "/leave-report", role: "leave", }, ], diff --git a/src/modules/09_leave/components/1_Work/DialogReport.vue b/src/modules/09_leave/components/1_Work/DialogReport.vue new file mode 100644 index 000000000..9074faea0 --- /dev/null +++ b/src/modules/09_leave/components/1_Work/DialogReport.vue @@ -0,0 +1,297 @@ + + + + diff --git a/src/modules/09_leave/components/3_Report/DetailReport.vue b/src/modules/09_leave/components/3_Report/LeaveReport.vue similarity index 62% rename from src/modules/09_leave/components/3_Report/DetailReport.vue rename to src/modules/09_leave/components/3_Report/LeaveReport.vue index 22a9e89c0..e5a68ef6c 100644 --- a/src/modules/09_leave/components/3_Report/DetailReport.vue +++ b/src/modules/09_leave/components/3_Report/LeaveReport.vue @@ -1,67 +1,31 @@ -
{ - {
- + --> diff --git a/src/modules/09_leave/router.ts b/src/modules/09_leave/router.ts index 57d06f504..dabba365b 100644 --- a/src/modules/09_leave/router.ts +++ b/src/modules/09_leave/router.ts @@ -1,8 +1,5 @@ const workMain = () => import("@/modules/09_leave/views/WorkingMain.vue"); const leaveMain = () => import("@/modules/09_leave/views/LeaveListMain.vue"); -const reportMain = () => import("@/modules/09_leave/views/ReportMain.vue"); -const reportDetail = () => - import("@/modules/09_leave/components/3_Report/DetailReport.vue"); const leaveDetail = () => import("@/modules/09_leave/components/2_Leave/DetailLeave.vue"); const leaveDetailReject = () => @@ -12,7 +9,8 @@ const ChangeRoundMain = () => import("@/modules/09_leave/views/ChangeRoundMain.vue"); const SpecialTimeMain = () => import("@/modules/09_leave/views/SpecialTimeMain.vue"); - +const leaveReport = () => + import("@/modules/09_leave/components/3_Report/LeaveReport.vue"); export default [ { path: "/round-time", @@ -95,23 +93,33 @@ export default [ }, }, { - path: "/statistics-report", - name: "/statistics-report", - component: reportMain, - meta: { - Auth: true, - Key: [9], - Role: "coin", - }, - }, - { - path: "/statistics-report/:type", - name: "/statistics-report-detail", - component: reportDetail, + path: "/leave-report", + name: "/leave-report", + component: leaveReport, meta: { Auth: true, Key: [9], Role: "coin", }, }, + // { + // path: "/statistics-report", + // name: "/statistics-report", + // component: reportMain, + // meta: { + // Auth: true, + // Key: [9], + // Role: "coin", + // }, + // }, + // { + // path: "/statistics-report/:type", + // name: "/statistics-report-detail", + // component: reportDetail, + // meta: { + // Auth: true, + // Key: [9], + // Role: "coin", + // }, + // }, ]; diff --git a/src/modules/09_leave/views/ChangeRoundMain.vue b/src/modules/09_leave/views/ChangeRoundMain.vue index 48509c548..4d61ecb83 100644 --- a/src/modules/09_leave/views/ChangeRoundMain.vue +++ b/src/modules/09_leave/views/ChangeRoundMain.vue @@ -88,7 +88,7 @@ function closeDialog() { modalFix.value = false; } -function save() { +function save() { dialogConfirm($q, async () => { showLoader(); await http diff --git a/src/modules/09_leave/views/ReportMain.vue b/src/modules/09_leave/views/ReportMain.vue deleted file mode 100644 index 5e8844c82..000000000 --- a/src/modules/09_leave/views/ReportMain.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - diff --git a/src/modules/09_leave/views/WorkingMain.vue b/src/modules/09_leave/views/WorkingMain.vue index a7baf4bd6..ae997c392 100644 --- a/src/modules/09_leave/views/WorkingMain.vue +++ b/src/modules/09_leave/views/WorkingMain.vue @@ -4,13 +4,31 @@ import { ref } from "vue"; /** import Components */ import Tab1 from "@/modules/09_leave/components/1_Work/Tab1.vue"; import Tab2 from "@/modules/09_leave/components/1_Work/Tab2.vue"; +import DialogReport from "@/modules/09_leave/components/1_Work/DialogReport.vue"; const tab = ref("1"); + +const modalReport = ref(false); + +function onClickOpenDialog() { + modalReport.value = !modalReport.value; +}