弹框提示

dev_jupyter
caicai8 5 years ago
parent 6a52118b54
commit c5dbfcc676

@ -246,7 +246,7 @@ class CoursesBanner extends Component {
}) })
}else{ }else{
s = "邀请码停用后,用户不能主动加入该课堂了"; s = "课堂邀请码停用后,用户不能主动加入该课堂了";
ss = "您是否确认停用?"; ss = "您是否确认停用?";
this.showActionPoll(i,s,ss) this.showActionPoll(i,s,ss)
} }

@ -221,6 +221,20 @@ function CourseGroupListTable(props) {
} }
// 停用和启用邀请码 // 停用和启用邀请码
function changeInviteCode(id,flag){ 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`; const url= `/course_groups/${id}/set_invite_code_halt.json`;
axios.post(url).then(result=>{ axios.post(url).then(result=>{
if(result){ if(result){

Loading…
Cancel
Save