|
|
|
@ -221,6 +221,20 @@ function CourseGroupListTable(props) {
|
|
|
|
|
}
|
|
|
|
|
// 停用和启用邀请码
|
|
|
|
|
function changeInviteCode(id,flag){
|
|
|
|
|
if(flag){
|
|
|
|
|
changeInviteCodeFunc(id,flag);
|
|
|
|
|
}else{
|
|
|
|
|
props.confirm({
|
|
|
|
|
content:"分班邀请码停用后,用户不能主动加入该分班了",
|
|
|
|
|
subContent:'您是否确认停用?',
|
|
|
|
|
onOk:() => {
|
|
|
|
|
changeInviteCodeFunc(id,flag)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function changeInviteCodeFunc(id,flag){
|
|
|
|
|
const url= `/course_groups/${id}/set_invite_code_halt.json`;
|
|
|
|
|
axios.post(url).then(result=>{
|
|
|
|
|
if(result){
|
|
|
|
|