From b5e4d4b477d501fccf3009c5ba0eb7f901c8cbe1 Mon Sep 17 00:00:00 2001 From: zhanghongyu04 <137910324+zhanghongyu04@users.noreply.github.com> Date: Tue, 25 Mar 2025 19:36:31 +0800 Subject: [PATCH] v0.2.19 --- sams-ui/package.json | 3 +- sams-ui/src/api/activity/activity.js | 2 +- sams-ui/src/router/index.js | 20 + sams-ui/src/views/admin/club/members.vue | 560 ++++------------- sams-ui/src/views/profile/index.vue | 582 +++++++----------- .../controller/ams/ActivityController.java | 69 ++- .../sams/controller/sms/ClubController.java | 97 ++- .../sams/controller/sys/UserController.java | 119 +++- .../com/bruce/sams/mapper/ClubUserMapper.java | 19 + .../com/bruce/sams/mapper/UserMapper.java | 18 + .../bruce/sams/service/ActivityService.java | 9 + .../com/bruce/sams/service/ClubService.java | 26 + .../com/bruce/sams/service/UserService.java | 23 +- .../service/impl/ActivityServiceImpl.java | 31 + .../sams/service/impl/ClubServiceImpl.java | 57 ++ .../sams/service/impl/UserServiceImpl.java | 77 +++ src/main/resources/application.yml | 1 + 17 files changed, 885 insertions(+), 828 deletions(-) diff --git a/sams-ui/package.json b/sams-ui/package.json index f5091b00..d1e39f3c 100644 --- a/sams-ui/package.json +++ b/sams-ui/package.json @@ -21,5 +21,6 @@ "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", "vite": "^6.2.0" - } + }, + "packageManager": "pnpm@10.6.5+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af" } diff --git a/sams-ui/src/api/activity/activity.js b/sams-ui/src/api/activity/activity.js index d1b6ec0f..5184fddc 100644 --- a/sams-ui/src/api/activity/activity.js +++ b/sams-ui/src/api/activity/activity.js @@ -20,7 +20,7 @@ export function getActivity(id) { // 创建活动 export function createActivity(data) { return request({ - url: '/activity', + url: '/activity/create', method: 'post', data }) diff --git a/sams-ui/src/router/index.js b/sams-ui/src/router/index.js index e1514750..803052d5 100644 --- a/sams-ui/src/router/index.js +++ b/sams-ui/src/router/index.js @@ -52,6 +52,11 @@ export const studentRoutes = [ path: 'notice', component: () => import('@/views/notice/index.vue'), meta: { title: '公告', roles: ['PARTICIPANT'] } + }, + { + path: 'profile', + component: () => import('@/views/profile/index.vue'), + meta: { title: '个人中心', roles: ['PARTICIPANT'] } } ] } @@ -87,6 +92,11 @@ export const adminRoutes = [ path: 'edit/:id', component: () => import('@/views/admin/activity/form.vue'), meta: { title: '编辑活动' } + }, + { + path: 'approval', + component: () => import('@/views/admin/activity/approval.vue'), + meta: { title: '活动审批' } } ] }, @@ -109,6 +119,11 @@ export const adminRoutes = [ path: 'edit/:id', component: () => import('@/views/admin/club/form.vue'), meta: { title: '编辑社团' } + }, + { + path: 'members', + component: () => import('@/views/admin/club/members.vue'), + meta: { title: '成员管理' } } ] }, @@ -117,6 +132,11 @@ export const adminRoutes = [ component: () => import('@/views/admin/user/index.vue'), meta: { title: '人员管理', roles: ['ADMIN', 'COLLEGE_ADMIN'] }, children: [ + { + path: 'list', + component: () => import('@/views/admin/user/list.vue'), + meta: { title: '用户列表' } + }, { path: 'password', component: () => import('@/views/profile/password.vue'), diff --git a/sams-ui/src/views/admin/club/members.vue b/sams-ui/src/views/admin/club/members.vue index 9c460cb3..24234125 100644 --- a/sams-ui/src/views/admin/club/members.vue +++ b/sams-ui/src/views/admin/club/members.vue @@ -1,114 +1,64 @@