diff --git a/src/modules/01_dashboard/interface/Main.ts b/src/modules/01_dashboard/interface/Main.ts new file mode 100644 index 0000000..faddc39 --- /dev/null +++ b/src/modules/01_dashboard/interface/Main.ts @@ -0,0 +1,34 @@ +interface InboxList { + id: string; + subject: string; + body: string; + receiverUserId: string; + payload: Object | null; + isOpen: boolean; + receiveDate: Date | null; + openDate: Date | null; + createdFullName?: string; + createdAt?: Date; +} + +interface InboxDetail { + no: string; + sender: string; + subject: string; + body: string; + ratingModel: number; + receiveDate?: string; + payload: Object | null; + isOpen: boolean; +} + +interface MenuMainList { + icon: string; + title: string; + sub: string; + color: string; + path: string; + active: boolean; +} + +export type { InboxList, InboxDetail, MenuMainList }; diff --git a/src/modules/01_dashboard/views/Dashboard.vue b/src/modules/01_dashboard/views/Dashboard.vue index 85c0349..d375aee 100644 --- a/src/modules/01_dashboard/views/Dashboard.vue +++ b/src/modules/01_dashboard/views/Dashboard.vue @@ -1,6 +1,5 @@ @@ -245,11 +248,7 @@ const thaiOptions: Intl.DateTimeFormatOptions = { v-for="(item, j) in items" :key="j" > - + - {{ date2Thai(item.receiveDate) }} - {{ - new Date(item.receiveDate).toLocaleTimeString( - "th-TH", - thaiOptions - ) - }} - น. + {{ item.receiveDate }} + - - {{ item.timereceive }} - - - -import Child from "@/components/TestUpgrade.vue"; -import { ref, computed, watchEffect } from "vue"; - -const count = ref(0); -const total = ref(0); -const first = ref("firstName"); -const last = ref("lastName"); - -const isEven = computed(() => count.value % 2 === 0); - -// watchEffect(() => isEven.value && submit()); // logs true - -const inputValue = ref(""); -function submit() { - console.log("test"); -} - - - - - - - Parent count is: {{ count }} - Reset count - - - - - - - - - - - - - - - - - Test Vue - - - - submit - - - - - diff --git a/src/modules/04_checkin/components/mapCheck.vue b/src/modules/04_checkin/components/mapCheck.vue deleted file mode 100644 index 189d763..0000000 --- a/src/modules/04_checkin/components/mapCheck.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - diff --git a/src/modules/04_checkin/components/tableHistory.vue b/src/modules/04_checkin/components/tableHistory.vue deleted file mode 100644 index 91ab588..0000000 --- a/src/modules/04_checkin/components/tableHistory.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - {{ year + 543 }} - {{ parseInt(value + 543) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/modules/04_checkin/router.ts b/src/modules/04_checkin/router.ts deleted file mode 100644 index d5ca802..0000000 --- a/src/modules/04_checkin/router.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Router Checkin - */ - -const Checkin = () => import("@/modules/04_checkin/views/Checkin.vue") -const History = () => import("@/modules/04_checkin/views/history.vue") - -/* const Checkout = () => import("@/modules/04_checkin/views/Checkout.vue"); - */ -export default [ - { - path: "/check-in", - name: "Checkin", - component: Checkin, - meta: { - Auth: true, - Key: [7], - }, - }, - { - path: "/check-in/history", - name: "History", - component: History, - meta: { - Auth: true, - Key: [7], - }, - }, - /* { - path: "/check-out", - name: "Checkout", - component: Checkout, - meta: { - Auth: true, - Key: [7], - }, - }, */ -] diff --git a/src/modules/04_checkin/views/Checkin.vue b/src/modules/04_checkin/views/Checkin.vue deleted file mode 100644 index 6cf6695..0000000 --- a/src/modules/04_checkin/views/Checkin.vue +++ /dev/null @@ -1,417 +0,0 @@ - - - - - - - - - - ลงเวลาเข้างาน - ลงเวลาออกงาน - - - - - - - - - - {{ Thai }} - - - - - {{ formattedH }}: - - - - - - {{ formattedM }}: - - - - - {{ formattedS }} - - - - - - - - - - - - พื้นที่ใกล้เคียง - : - {{ location }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - สถานที่ทำงาน - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ลงเวลาเข้างานของคุณ - ลงเวลาออกงานของคุณ - - - - - - {{ Thai }} - - - - {{ formattedH }}: - - {{ formattedM }} - - - - - {{ location }} - - {{ coordinates }} - - - - - - - - - - - - - diff --git a/src/modules/04_checkin/views/history.vue b/src/modules/04_checkin/views/history.vue deleted file mode 100644 index b52f7da..0000000 --- a/src/modules/04_checkin/views/history.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - ประวัติการลงเวลา - - - - - - - - {{ props.rowIndex + 1 }} - - - {{ props.row.date }} - - - {{ props.row.in }} - - - {{ props.row.loIn }} - - - {{ props.row.out }} - - - {{ props.row.loOut }} - - - {{ props.row.status }} - - - - - - - - - - {{ col.label }} - - - - {{ col.value }} - {{ col.value }} - - - - - - - - - - - - - - diff --git a/src/router/index.ts b/src/router/index.ts index c6290ed..fdc7559 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -8,7 +8,6 @@ const ErrorPermission = () => import("@/views/ErrorPermission.vue"); import ModuleTransfer from "@/modules/02_transfer/router"; import ModuleRetire from "@/modules/03_retire/router"; -import ModuleCheckin from "@/modules/04_checkin/router"; import ModuleLeave from "@/modules/05_leave/router"; import ModuEvaluate from "@/modules/06_evaluate/router"; import ModuAppealComplain from "@/modules/07_appealComplain/router"; @@ -48,7 +47,6 @@ const router = createRouter({ ...ModuleTransfer, ...ModuleRetire, - ...ModuleCheckin, ...ModuleLeave, ...ModuEvaluate, ...ModuAppealComplain,