修改加入班级时选择分班后跳入页面
This commit is contained in:
parent
72190a3639
commit
11132d3459
|
@ -43,7 +43,8 @@ app.controller('JoinClassGroupController', ['$scope', '$http', 'auth', 'config',
|
|||
|
||||
|
||||
vm.cancel = function(){
|
||||
$location.path("/class").search({id: course_id,tag:1});
|
||||
rms.save('syllabuses',[]);
|
||||
$location.path("/class_list");
|
||||
};
|
||||
|
||||
vm.confirm = function(){
|
||||
|
@ -66,10 +67,12 @@ app.controller('JoinClassGroupController', ['$scope', '$http', 'auth', 'config',
|
|||
console.log(response);
|
||||
if(response.data.status == 0){
|
||||
vm.alertService.showMessage('提示', "选择分班成功!",function(){
|
||||
rms.save('syllabuses',[]);
|
||||
$location.path("/class_list");
|
||||
});
|
||||
} else {
|
||||
vm.alertService.showMessage('提示', response.data.message,function(){
|
||||
rms.save('syllabuses',[]);
|
||||
$location.path("/class_list");
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue