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

weixin_guange
yuanke 9 years ago
commit a8dda970c4

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

Loading…
Cancel
Save