You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

class_group.js 1.6 kB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. app.controller('ClassGroupController', ['$scope', 'config','$http', 'auth','$location','$routeParams','alertService','rms','common','$timeout', function($scope, config, $http, auth, $location, $routeParams,alertService,rms,common,$timeout){
  2. // common.checkLogin();
  3. $scope.replaceUrl = function(url){
  4. return url;
  5. };
  6. var vm = $scope;
  7. var courseid = $routeParams.id;
  8. vm.alertService = alertService.create();
  9. if(!vm.course){
  10. $http.get(config.apiUrl+ 'courses/'+courseid+"?token="+auth.token()).then(
  11. function(response) {
  12. console.log(response.data);
  13. if (response.data.status == 0){
  14. vm.course = response.data.data;
  15. console.log("courses");
  16. console.log(response.data.data);
  17. }
  18. else{
  19. vm.alertService.showMessage('提示', response.data.message);
  20. }
  21. if(!vm.course){
  22. vm.tip_1 = "该班级不存在或已被删除";
  23. }
  24. }
  25. );
  26. }
  27. $http.get(config.apiUrl + 'courses/course_groups_withstudent/'+courseid+'?token='+auth.token()).then(
  28. function(response) {
  29. console.log("groups=");
  30. console.log(response);
  31. if(response.data.status == 0) {
  32. vm.groups = response.data.data;
  33. }
  34. else{
  35. vm.groups = [];
  36. }
  37. });
  38. vm.goEditGroup = function(){
  39. $location.path("/edit_class_group").search({id: courseid});
  40. }
  41. }]);

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...