From cc5c44a5f6257adf50d97b7cf063f4202481905e Mon Sep 17 00:00:00 2001 From: Kittapath Date: Thu, 12 Oct 2023 02:55:07 +0700 Subject: [PATCH] edit name import --- src/modules/03_retire/router.ts | 8 +- src/modules/04_checkin/router.ts | 44 ++++---- src/modules/04_checkin/views/history.vue | 137 +++++++++++------------ 3 files changed, 89 insertions(+), 100 deletions(-) diff --git a/src/modules/03_retire/router.ts b/src/modules/03_retire/router.ts index 68edb28..b59fbef 100644 --- a/src/modules/03_retire/router.ts +++ b/src/modules/03_retire/router.ts @@ -2,17 +2,17 @@ * Router ขอโอน */ -const Main = () => import("@/modules/03_retire/views/Main.vue") +const MainRetire = () => import("@/modules/03_retire/views/main.vue") -const AddRetire = () => import("@/modules/03_retire/views/AddRetire.vue") +const AddRetire = () => import("@/modules/03_retire/views/addRetire.vue") -const ResultQuestionair = () => import("@/modules/03_retire/views/Result.vue") +const ResultQuestionair = () => import("@/modules/03_retire/views/result.vue") export default [ { path: "/retire", name: "Retire", - component: Main, + component: MainRetire, meta: { Auth: true, Key: [7], diff --git a/src/modules/04_checkin/router.ts b/src/modules/04_checkin/router.ts index 5f514e7..d5ca802 100644 --- a/src/modules/04_checkin/router.ts +++ b/src/modules/04_checkin/router.ts @@ -2,31 +2,31 @@ * Router Checkin */ -const Checkin = () => import("@/modules/04_checkin/views/CheckIn.vue"); -const History = () => import("@/modules/04_checkin/views/History.vue"); +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-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, @@ -35,4 +35,4 @@ export default [ Key: [7], }, }, */ -]; +] diff --git a/src/modules/04_checkin/views/history.vue b/src/modules/04_checkin/views/history.vue index c541812..5fc459e 100644 --- a/src/modules/04_checkin/views/history.vue +++ b/src/modules/04_checkin/views/history.vue @@ -1,37 +1,29 @@