diff --git a/src/interface/index/Main.ts b/src/interface/index/Main.ts index 14def36..0941198 100644 --- a/src/interface/index/Main.ts +++ b/src/interface/index/Main.ts @@ -1,49 +1,55 @@ interface DataOption { - id: string - name: string + id: string; + name: string; +} + +interface DateCards { + label: string; + img: string; + page: string; } interface DataDateMonthObject { - month: number - year: number + month: number; + year: number; } interface FormRef { - date: object | null - reason: object | null - [key: string]: any + date: object | null; + reason: object | null; + [key: string]: any; } interface notiType { - id: string - sender: string - body: string - timereceive: Date - isOpen: boolean + id: string; + sender: string; + body: string; + timereceive: Date; + isOpen: boolean; } interface LocationObject { - latitude: number - longitude: number + latitude: number; + longitude: number; } interface Pagination { - sortBy: string | null - descending: boolean - page: number - rowsPerPage: number | undefined + sortBy: string | null; + descending: boolean; + page: number; + rowsPerPage: number | undefined; } interface DataCheckIn { - checkInDate: string - checkInDateTime: string - checkInId: string - checkInLocation: string - checkInStatus: string - checkInTime: string - checkOutLocation: string - checkOutStatus: string - checkOutTime: string - editReason: string - editStatus: string - isEdit: boolean + checkInDate: string; + checkInDateTime: string; + checkInId: string; + checkInLocation: string; + checkInStatus: string; + checkInTime: string; + checkOutLocation: string; + checkOutStatus: string; + checkOutTime: string; + editReason: string; + editStatus: string; + isEdit: boolean; } export type { @@ -54,4 +60,5 @@ export type { LocationObject, Pagination, DataCheckIn, -} + DateCards, +}; diff --git a/src/views/home.vue b/src/views/home.vue index 1b1fd9a..986c751 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -7,6 +7,12 @@ import axios from "axios"; import config from "@/app.config"; import CustomComponent from "@/components/CustomDialog.vue"; +import screen1 from "@/assets/screen1.png"; +import screen2 from "@/assets/screen2.png"; +import screen3 from "@/assets/screen3.png"; +import screen4 from "@/assets/screen4.png"; + +import type { DateCards } from "@/interface/index/Main"; const $q = useQuasar(); @@ -15,6 +21,29 @@ const urlUser = import.meta.env.VITE_URL_USER ?? ""; const urlMgt = import.meta.env.VITE_URL_MGT ?? ""; const urlCheckin = import.meta.env.VITE_URL_CHECKIN ?? ""; +const cards = ref([ + { + label: "ระบบบริการเจ้าของข้อมูล", + img: screen1, + page: "user", + }, + { + label: "ระบบลงเวลาปฏิบัติราชการ", + img: screen2, + page: "checkin", + }, + { + label: "ระบบบริหารจัดการ", + img: screen3, + page: "mgt", + }, + { + label: "ระบบแอดมิน", + img: screen4, + page: "admin", + }, +]); + const token = ref(""); const refreshToken = ref(""); const fullname = computed(() => { @@ -121,33 +150,6 @@ onMounted(async () => { }); } }); - -const cards = ref([ - { - label: "ระบบบริการเจ้าของข้อมูล", - img: "https://bma-sso.frappet.synology.me/images/screen1.png", - page: "user", - url: "urlUser", - }, - { - label: "ระบบลงเวลาปฏิบัติราชการ", - img: "https://bma-sso.frappet.synology.me/images/screen2.png", - page: "checkin", - url: "urlCheckin", - }, - { - label: "ระบบบริหารจัดการ", - img: "https://bma-sso.frappet.synology.me/images/screen3.png", - page: "mgt", - url: "urlMgt", - }, - { - label: "ระบบแอดมิน", - img: "https://bma-sso.frappet.synology.me/images/screen4.png", - page: "admin", - url: "urlAdmin", - }, -]);