Merge branch 'weixin_guange' of https://git.trustie.net/jacknudt/trustieforge into weixin_guange

This commit is contained in:
yuanke 2016-08-12 15:38:39 +08:00
commit a8dda970c4
1 changed files with 184 additions and 181 deletions

View File

@ -107,8 +107,11 @@ app.controller('ClassController', ['$scope', 'config','$http', 'auth','$location
vm.showResources = true;
}
}
rms.save("tab_num",index);
}
vm.tabRecord = rms.get('tab_num') || 1;
vm.course = {};
vm.students = [];
vm.teachers = [];
@ -138,13 +141,13 @@ app.controller('ClassController', ['$scope', 'config','$http', 'auth','$location
if (response.data.status == 0){
vm.course = response.data.data;
resetMenu(vm.course.current_user_is_teacher);
resetMenu(vm.course.current_user_is_teacher,vm.tabRecord);
if(tag){
vm.tab(4);
tag = null;
}
else{
vm.tab(1);
vm.tab(vm.tabRecord);
}
}
else{