From 76665543882ca32f2af9fef5ea64811872840b6f Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Thu, 11 Apr 2024 18:01:59 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=A5=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=AD=E0=B8=B5=E0=B8=A2=E0=B8=94=E0=B8=97=E0=B8=B8?= =?UTF-8?q?=E0=B8=99=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A8=E0=B8=B6=E0=B8=81?= =?UTF-8?q?=E0=B8=A9=E0=B8=B2/=E0=B8=9D=E0=B8=B6=E0=B8=81=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/scholarship/api.scholarship.ts | 9 + src/app.config.ts | 2 + src/modules/09_scholarship/router.ts | 11 +- src/modules/09_scholarship/views/detail.vue | 393 ++++++++++++++++++++ src/modules/09_scholarship/views/main.vue | 173 ++++----- 5 files changed, 477 insertions(+), 111 deletions(-) create mode 100644 src/api/scholarship/api.scholarship.ts create mode 100644 src/modules/09_scholarship/views/detail.vue diff --git a/src/api/scholarship/api.scholarship.ts b/src/api/scholarship/api.scholarship.ts new file mode 100644 index 0000000..c921010 --- /dev/null +++ b/src/api/scholarship/api.scholarship.ts @@ -0,0 +1,9 @@ +import env from "../index"; + +const development = `${env.API_URI}/development`; + + +export default { + developmentScholarship: `${development}/scholarship`, + +}; diff --git a/src/app.config.ts b/src/app.config.ts index 20be1e7..4d711c9 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -9,6 +9,7 @@ import message from "./api/api.message"; import evaluate from "./api/evaluate/api.evaluate"; import support from "./api/support/api.support"; import org from "./api/org/api.org"; +import scholarship from "./api/scholarship/api.scholarship"; const API = { ...testtest, @@ -19,6 +20,7 @@ const API = { ...appeal, ...support, ...org, + ...scholarship, }; export default { diff --git a/src/modules/09_scholarship/router.ts b/src/modules/09_scholarship/router.ts index 2beac10..ca4af1c 100644 --- a/src/modules/09_scholarship/router.ts +++ b/src/modules/09_scholarship/router.ts @@ -3,7 +3,7 @@ */ const scholarshipPage = () => import("@/modules/09_scholarship/views/main.vue"); - +const scholarshipDetail = () => import('@/modules/09_scholarship/views/detail.vue') export default [ { path: "/scholarship", @@ -14,4 +14,13 @@ export default [ Key: [9], }, }, + { + path: "/scholarship/:id", + name: "scholarshipDetail", + component: scholarshipDetail, + meta: { + Auth: true, + Key: [9], + }, + }, ]; diff --git a/src/modules/09_scholarship/views/detail.vue b/src/modules/09_scholarship/views/detail.vue new file mode 100644 index 0000000..50206c1 --- /dev/null +++ b/src/modules/09_scholarship/views/detail.vue @@ -0,0 +1,393 @@ + + diff --git a/src/modules/09_scholarship/views/main.vue b/src/modules/09_scholarship/views/main.vue index bc9a495..9ddc4cc 100644 --- a/src/modules/09_scholarship/views/main.vue +++ b/src/modules/09_scholarship/views/main.vue @@ -1,17 +1,22 @@ @@ -335,7 +286,6 @@ onMounted(async () => { {{ col.label }} -