|
|
@ -29,6 +29,11 @@ app.controller('SendClassListController', ['$scope', '$http','$routeParams', 'co
|
|
|
|
course_ids.push(vm.courses[i].id);
|
|
|
|
course_ids.push(vm.courses[i].id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(course_ids.length <= 0){
|
|
|
|
|
|
|
|
vm.alertService.showMessage('提醒', '请先选择班级');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$http.post(config.apiUrl + "resources/send", {
|
|
|
|
$http.post(config.apiUrl + "resources/send", {
|
|
|
|
token: auth.token(), course_ids: course_ids, send_id: send_id
|
|
|
|
token: auth.token(), course_ids: course_ids, send_id: send_id
|
|
|
|