From 1fcd299abc3df937ec3fe1d4ad4ade487ab37402 Mon Sep 17 00:00:00 2001 From: lixg Date: Tue, 14 Feb 2023 01:18:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=8E=A5=E5=85=A5=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=B0=8F=E7=BB=84=E6=88=90=E5=91=98=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index1.js | 14 +- src/components/drawers/MemberList.vue | 140 ++++-- src/components/drawers/SubsetManage.vue | 24 +- src/components/student/CommonStudent.vue | 516 +++++++++++++++-------- src/views/projectcenter/TaskPage.vue | 13 +- 5 files changed, 473 insertions(+), 234 deletions(-) diff --git a/src/api/index1.js b/src/api/index1.js index 2a055cc5..c1fe47a4 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-04 22:45:31 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-02-11 16:22:43 + * @LastEditTime: 2023-02-13 23:09:53 * @FilePath: /fe-manage/src/api/index1.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -65,7 +65,7 @@ export const setConfig = (obj) => http.post("/admin/router/setConfig", obj); //获取学员列表 export const getStudent = (obj) => http.post("/admin/router/studentList", obj); //获取路径图详情-包含关卡及任务列表 -export const getRouterDetail = (routerId,useTask) => +export const getRouterDetail = (routerId, useTask) => http.get("/admin/router/detail", { params: { routerId: routerId, @@ -224,4 +224,12 @@ export const ImportExternalExamScore = (obj) => http.post('/admin/external/exam/ //分组 export const changeGroupByStudentId = (obj) => http.post('/admin/student/changeGroupByStudentId', obj) //导入小组 -export const importGroup = (uuid) => http.post('/admin/studentGroup/importGroup/{pid}', { params: { uuid: uuid } }) \ No newline at end of file +export const importGroup = (uuid) => http.post('/admin/studentGroup/importGroup/{pid}', { params: { uuid: uuid } }) +//添加小组学员 +export const addGroupMember = (obj) => http.post('/admin/studentGroup/addGroupMember', obj) +//获取小组成员 +export const groupMemberList = (obj) => http.post('/admin/studentGroup/groupMemberList', obj) +//删除小组成员 +export const delGroupStudent = (obj) => http.post('/admin/studentGroup/delStudent', obj) +//随机分组 +export const randomGroup = (obj, projectId) => http.post(`/admin/studentGroup/randomGroup/${projectId}`, obj) diff --git a/src/components/drawers/MemberList.vue b/src/components/drawers/MemberList.vue index 8bfa6830..843a3833 100644 --- a/src/components/drawers/MemberList.vue +++ b/src/components/drawers/MemberList.vue @@ -38,10 +38,33 @@
-
+ + + + + 添加组员 +
批量删除
@@ -148,32 +171,31 @@
- + /> -->