修改加入班级时选择分班后跳入页面

This commit is contained in:
yuanke 2016-09-22 10:49:53 +08:00
parent 72190a3639
commit 11132d3459
1 changed files with 4 additions and 1 deletions

View File

@ -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");
});
}