From feb78d06cef9a5afd9b11129243b34c1a2b8317f Mon Sep 17 00:00:00 2001 From: Tanyalak Date: Fri, 14 Mar 2025 17:37:11 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=89=E0=B8=B2=20ui=20=E0=B9=80=E0=B8=8A=E0=B9=87?= =?UTF-8?q?=E0=B8=84=E0=B8=AD=E0=B8=B4=E0=B8=99=20=E0=B9=83=E0=B8=99?= =?UTF-8?q?=E0=B8=AA=E0=B9=88=E0=B8=A7=E0=B8=99=E0=B8=82=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=A1=E0=B8=B7=E0=B8=AD=E0=B8=96=E0=B8=B7=E0=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 5 +- src/components/AscGISMap.vue | 57 ++- src/router/index.ts | 2 +- src/views/HomeView.vue | 663 +++++++++++++++++++++++------------ src/views/MainView.vue | 2 +- 5 files changed, 482 insertions(+), 247 deletions(-) diff --git a/.env.production b/.env.production index 065bcc6..dce5f3a 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,2 @@ -VITE_API_URI_CONFIG=VITE_API_URI_CONFIG -VITE_URL_SSO=VITE_URL_SSO -VITE_URL_LANDING=VITE_URL_LANDING \ No newline at end of file +VITE_API_URI_CONFIG: "https://bma-ehr.frappet.synology.me/api/v1" +VITE_URL_SSO: "https://bma-sso.frappet.synology.me" \ No newline at end of file diff --git a/src/components/AscGISMap.vue b/src/components/AscGISMap.vue index d49d1fc..728ded1 100644 --- a/src/components/AscGISMap.vue +++ b/src/components/AscGISMap.vue @@ -198,23 +198,52 @@ onMounted(async () => { + diff --git a/src/router/index.ts b/src/router/index.ts index de8d3f1..23e3edb 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,7 +13,7 @@ const router = createRouter({ routes: [ { path: '/', - name: 'home', + name: 'main', component: MainView, children: [ { diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index f098690..7ab94df 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -50,6 +50,8 @@ const Thai = ref(dateNow.value) const formattedS = ref() const formattedM = ref() const formattedH = ref() +const formattedHH = ref() +const formattedA = ref() /** function อัพเดทเวลา*/ function updateClock() { @@ -57,9 +59,14 @@ function updateClock() { const hh = moment(date).format('HH') const mm = moment(date).format('mm') const ss = moment(date).format('ss') + const HH = moment(date).format('hh'); + const A = moment(date).format('a'); + formattedS.value = ss formattedM.value = mm formattedH.value = hh + formattedHH.value = HH + formattedA.value = A } setInterval(updateClock, 1000) @@ -254,11 +261,17 @@ function updateWorkplace() { */ const getClass = (val: boolean) => { return { - 'bg-primary text-white col-12 row items-center q-px-md q-py-sm': val, - 'bg-red-9 text-white col-12 row items-center q-px-md q-py-sm': !val, + 'bg-primary text-white col-12 row items-center q-px-md q-py-sm ': val, + 'bg-red-9 text-white col-12 row items-center q-px-md q-py-sm ': !val, } } +const getClassXS = (val: boolean) => { + return { + 'bg-topIn text-white q-pa-lg col-12 row': val, + 'bg-topOut text-white q-pa-lg col-12 row': !val, + } +} const inQueue = ref(false) async function fetchCheckStatus() { @@ -312,252 +325,423 @@ onMounted(async () => { diff --git a/src/views/MainView.vue b/src/views/MainView.vue index 6cf7bd4..8b215c7 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -517,7 +517,7 @@ onMounted(async () => { :style=" $q.screen.gt.xs ? 'padding: 1.8% 2%; margin-top: -200px;' - : 'padding: 5% 4%; margin-top: -200px;' + : 'padding: 0% 0%; margin-top: -200px;' " >