enrol_doc.js 778 B

1234567891011121314151617181920212223242526272829
  1. app.controller('StdEnrolDocCtrl', [ '$rootScope', '$scope', '$stateParams', '$timeout', function($rootScope, $scope, $stateParams, $timeout) {
  2. if ($stateParams == undefined || $stateParams.enrol_id == undefined) {
  3. $.alert('参数错误,无法获取报考详细信息', function() {
  4. $rootScope.goWechat();
  5. });
  6. return;
  7. }
  8. $scope.getEnrol = function() {
  9. $rootScope.ajaxRequest({
  10. url : '../enrol/std/enrol/find.htm',
  11. data : {
  12. enrol_id : $stateParams.enrol_id,
  13. aspect_batch : 1
  14. }
  15. }, function(response) {
  16. $scope.EnrolMap = response.map.StdEnrol;
  17. });
  18. }
  19. if( $stateParams.enrol_id!='null' )
  20. $scope.getEnrol();
  21. $scope.goDownload = function(url) {
  22. $('#down_url').attr('href', url);
  23. document.getElementById("down_url").click();
  24. }
  25. } ])