发送课程的时候提示语修改

This commit is contained in:
yuanke 2016-07-05 14:44:50 +08:00
parent 7a9665bbee
commit d49bc8b114
1 changed files with 5 additions and 0 deletions

View File

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