diff --git a/src/components/AscGISMap.vue b/src/components/AscGISMap.vue new file mode 100644 index 0000000..a9678d3 --- /dev/null +++ b/src/components/AscGISMap.vue @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + พื้นที่ใกล้เคียง + : + {{ poiPlaceName }} + + + diff --git a/src/interface/index/Main.ts b/src/interface/index/Main.ts index 8b50fb5..dad1f39 100644 --- a/src/interface/index/Main.ts +++ b/src/interface/index/Main.ts @@ -19,4 +19,9 @@ interface notiType { timereceive: Date } -export type { DataOption, FormRef, notiType, DataDateMonthObject } +interface LocationObject { + latitude: number + longitude: number +} + +export type { DataOption, FormRef, notiType, DataDateMonthObject, LocationObject} diff --git a/src/router/index.ts b/src/router/index.ts index 57785e5..c8ff08a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,5 +1,6 @@ import { createRouter, createWebHistory } from 'vue-router' import HomeView from '@/views/HomeView.vue' +import MapView from '@/views/MapView.vue' import keycloak from '@/plugins/keycloak' @@ -14,6 +15,14 @@ const router = createRouter({ Auth: true, }, }, + { + path: '/map', + name: 'map', + component: MapView, + meta: { + Auth: true, + }, + }, { path: '/about', name: 'about', diff --git a/src/views/MapView.vue b/src/views/MapView.vue new file mode 100644 index 0000000..09cc1e1 --- /dev/null +++ b/src/views/MapView.vue @@ -0,0 +1,659 @@ + + + + + + + + + + + + ลงเวลาเข้างาน + ลงเวลาออกงาน + + + + + + {{ notiList.length }} + + + + การแจ้งเตือน + + + + + + + + {{ + n.sender + }} + + + + {{ + n.body + }} + {{ date2Thai(n.timereceive) }} + + + + + + + + + + + + + + {{ date2Thai(Thai) }} + + + + + {{ formattedH }}: + + + + + {{ formattedM }}: + + + + {{ formattedS }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + สถานที่ทำงาน + + + + + + + + + + + + + + + + + + + + + + + *หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที + + + + + + + + + + + + + + + + + ลงเวลาเข้างานของคุณ + ลงเวลาออกงานของคุณ + + + + + + {{ date2Thai(Thai) }} + + + + + + {{ timeChickin }} + + + + + {{ location }} + + + {{ formLocation.lat }} , {{ formLocation.lng }} + + + + + + + + + + + \ No newline at end of file
+ *หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที +