diff --git a/src/components/drawers/MemberList.vue b/src/components/drawers/MemberList.vue index 843a3833..c78790c6 100644 --- a/src/components/drawers/MemberList.vue +++ b/src/components/drawers/MemberList.vue @@ -261,22 +261,22 @@ export default { align: "center", className: "h", }, - // { - // title: "岗位", - // dataIndex: "gangw", - // key: "gangw", - // width: 60, - // align: "center", - // className: "h", - // }, - // { - // title: "进度", - // dataIndex: "progress", - // key: "progress", - // width: 60, - // align: "center", - // className: "h", - // }, + { + title: "岗位", + dataIndex: "gangw", + key: "gangw", + width: 60, + align: "center", + className: "h", + }, + { + title: "进度", + dataIndex: "progress", + key: "progress", + width: 60, + align: "center", + className: "h", + }, { title: "操作", dataIndex: "operations", diff --git a/src/components/drawers/SubsetManage.vue b/src/components/drawers/SubsetManage.vue index 6d3be939..c5fe2072 100644 --- a/src/components/drawers/SubsetManage.vue +++ b/src/components/drawers/SubsetManage.vue @@ -85,6 +85,10 @@ export default { type: Number, default: null, }, + getGroup: { + type: Function, + default: null, + }, }, setup(props, ctx) { const state = reactive({ @@ -121,7 +125,7 @@ export default { for (let i = 0; i < state.groupNum; i++) { let obj = { key: i, - groupName: "", + groupName: "第" + (i + 1) + "小组", capacity: state.peopleNum, }; arr.push(obj); @@ -144,9 +148,14 @@ export default { pid: props.projectId, randomGroups: state.groupNum2, }; + ctx.emit("update:Svisible", false); randomGroup(obj, props.projectId) .then((res) => { console.log("随机分组结果", res); + if (res.data.code === 200) { + message.success("小组添加成功"); + props.getGroup && props.getGroup(); + } }) .catch((err) => { console.log("随机分组失败", err); diff --git a/src/components/student/CommonStudent.vue b/src/components/student/CommonStudent.vue index 72b77989..f5f4372f 100644 --- a/src/components/student/CommonStudent.vue +++ b/src/components/student/CommonStudent.vue @@ -22,7 +22,7 @@