From 8d3b1e62f53102c859aaa21cf408f6927b8eb07e Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 28 Apr 2023 15:40:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E4=B8=9A=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 14 + src/layouts/navbar/index.vue | 5 + src/pages/activity/add/index.vue | 512 +++++++++++++++++++ src/pages/activity/list/index.vue | 365 ++++++++++++++ src/pages/activity/manage/index.vue | 129 +++++ src/pages/activity/manage/matchProgress.vue | 240 +++++++++ src/pages/activity/manage/matchSignup.vue | 171 +++++++ src/pages/activity/manage/notice.vue | 140 +++++ src/pages/activity/manage/noticeDetail.vue | 308 +++++++++++ src/pages/activity/preview/index.vue | 533 ++++++++++++++++++++ src/router/modules/activity.js | 37 ++ src/setting.js | 2 +- src/store/modules/activity.js | 21 + 13 files changed, 2476 insertions(+), 1 deletion(-) create mode 100644 src/pages/activity/add/index.vue create mode 100644 src/pages/activity/list/index.vue create mode 100644 src/pages/activity/manage/index.vue create mode 100644 src/pages/activity/manage/matchProgress.vue create mode 100644 src/pages/activity/manage/matchSignup.vue create mode 100644 src/pages/activity/manage/notice.vue create mode 100644 src/pages/activity/manage/noticeDetail.vue create mode 100644 src/pages/activity/preview/index.vue create mode 100644 src/router/modules/activity.js create mode 100644 src/store/modules/activity.js diff --git a/src/api/index.js b/src/api/index.js index 7268f87..6beb08a 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -316,6 +316,20 @@ export default { logoSave: `occupationlab/occupationlab/sys/logo/save`, //新增系统设置信息 logoUpdate: `occupationlab/occupationlab/sys/logo/update`, //编辑系统设置信息 + // 创业活动 + activityList: `occupationlab/occupationlab/activity/activityList`, + batchDeletionActivity: `occupationlab/occupationlab/activity/batchDeletion`, + disabledEventsActivity: `occupationlab/occupationlab/activity/disabledEvents`, + findByIdActivity: `occupationlab/occupationlab/activity/findById`, + getRedisCacheActivity: `occupationlab/occupationlab/activity/getRedisCache`, + saveActivity: `occupationlab/occupationlab/activity/save`, + updateActivity: `occupationlab/occupationlab/activity/update`, + delActivityApplicant: `occupationlab/occupationlab/activity/applicant/batchDeletion`, + findByIdActivityApplicant: `occupationlab/occupationlab/activity/applicant/findById`, + saveActivityApplicant: `occupationlab/occupationlab/activity/applicant/save`, + updateActivityApplicant: `occupationlab/occupationlab/activity/applicant/update`, + ApplicantsList: `occupationlab/occupationlab/activity/applicant/ApplicantsList`, + academicLeadersRanking: `occupationlab/occupationlab/data/kanban/academicLeadersRanking`, getTheMostUsedCoursesInOurSchool: `occupationlab/occupationlab/data/kanban/getTheMostUsedCoursesInOurSchool`, examStatistics: `occupationlab/occupationlab/data/kanban/examStatistics`, diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index c7abe10..734cd28 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -77,6 +77,11 @@ export default { index: "/match/list", title: "赛事管理" }, + { + icon: "el-icon-school", + index: "/activity/list", + title: "创业活动" + }, { icon: "el-icon-postcard", index: "/project/list", diff --git a/src/pages/activity/add/index.vue b/src/pages/activity/add/index.vue new file mode 100644 index 0000000..1c70e83 --- /dev/null +++ b/src/pages/activity/add/index.vue @@ -0,0 +1,512 @@ + + + + + \ No newline at end of file diff --git a/src/pages/activity/list/index.vue b/src/pages/activity/list/index.vue new file mode 100644 index 0000000..eb35d22 --- /dev/null +++ b/src/pages/activity/list/index.vue @@ -0,0 +1,365 @@ + + + + + \ No newline at end of file diff --git a/src/pages/activity/manage/index.vue b/src/pages/activity/manage/index.vue new file mode 100644 index 0000000..5f2d996 --- /dev/null +++ b/src/pages/activity/manage/index.vue @@ -0,0 +1,129 @@ + + + + + \ No newline at end of file diff --git a/src/pages/activity/manage/matchProgress.vue b/src/pages/activity/manage/matchProgress.vue new file mode 100644 index 0000000..605b7d1 --- /dev/null +++ b/src/pages/activity/manage/matchProgress.vue @@ -0,0 +1,240 @@ + + + + + \ No newline at end of file diff --git a/src/pages/activity/manage/matchSignup.vue b/src/pages/activity/manage/matchSignup.vue new file mode 100644 index 0000000..0b95e1d --- /dev/null +++ b/src/pages/activity/manage/matchSignup.vue @@ -0,0 +1,171 @@ + + + + + \ No newline at end of file diff --git a/src/pages/activity/manage/notice.vue b/src/pages/activity/manage/notice.vue new file mode 100644 index 0000000..d76c7b3 --- /dev/null +++ b/src/pages/activity/manage/notice.vue @@ -0,0 +1,140 @@ + + + + + \ No newline at end of file diff --git a/src/pages/activity/manage/noticeDetail.vue b/src/pages/activity/manage/noticeDetail.vue new file mode 100644 index 0000000..519d4f4 --- /dev/null +++ b/src/pages/activity/manage/noticeDetail.vue @@ -0,0 +1,308 @@ + + + + + \ No newline at end of file diff --git a/src/pages/activity/preview/index.vue b/src/pages/activity/preview/index.vue new file mode 100644 index 0000000..12b2f85 --- /dev/null +++ b/src/pages/activity/preview/index.vue @@ -0,0 +1,533 @@ + + + + + \ No newline at end of file diff --git a/src/router/modules/activity.js b/src/router/modules/activity.js new file mode 100644 index 0000000..f104de5 --- /dev/null +++ b/src/router/modules/activity.js @@ -0,0 +1,37 @@ +import BasicLayout from "@/layouts/home"; + +const meta = {}; + +const pre = "activity-"; + +export default { + path: "/activity", + name: "activity", + redirect: { + name: `${pre}list` + }, + meta, + component: BasicLayout, + children: [ + { + name: `${pre}list`, + path: `list`, + component: () => import("@/pages/activity/list"), + }, + { + name: `${pre}add`, + path: `add`, + component: () => import("@/pages/activity/add"), + }, + { + name: `${pre}manage`, + path: `manage`, + component: () => import("@/pages/activity/manage"), + }, + { + name: `${pre}noticeDetail`, + path: `noticeDetail`, + component: () => import("@/pages/activity/manage/noticeDetail"), + }, + ] +}; \ No newline at end of file diff --git a/src/setting.js b/src/setting.js index 41f846d..63623d3 100644 --- a/src/setting.js +++ b/src/setting.js @@ -87,7 +87,7 @@ const Setting = { // 相同路由,不同参数间进行切换,是否强力更新 sameRouteForceUpdate: false, // 是否使用动态路由(即角色权限,开启了的话就会取后端返回的权限树来显示头部导肮和页面按钮) - dynamicRoute: true, + dynamicRoute: false, // 文件上传 upload: { apiURL: uploadURL, diff --git a/src/store/modules/activity.js b/src/store/modules/activity.js new file mode 100644 index 0000000..80d87ff --- /dev/null +++ b/src/store/modules/activity.js @@ -0,0 +1,21 @@ +/** + * 赛事相关 + * */ +export default { + namespaced: true, + state: { + page: 1, + cache: null + }, + mutations: { + setPage: (state, page) => { + state.page = page + }, + setCache: (state, cache) => { + state.cache = cache + } + }, + actions: { + + } +}; \ No newline at end of file