12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- app.controller('MainCtrl', [ '$rootScope', '$scope', '$timeout', function($rootScope, $scope, $timeout) {
- if (!$rootScope.loginSuccess)
- return;
- $scope.showAppointment = false;
- $scope.showTicket = false;
- $scope.showInfo = false;
- $scope.hasFirstScore = false;
- $scope.hasFinalScore = false;
-
- $scope.getEnrolArray2 = function() {
- $rootScope.ajaxRequest({
- url : '../enrol/std/enrol/list.htm'
- }, function(response) {
- $scope.EnrolArray2 = response.array;
- console.log(response.array);
- });
- }
- $scope.getScoreArray = function() {
- var today = $rootScope.shortDateString(new Date());
- var now = new Date();
- $rootScope.ajaxRequest({
- url : '../enrol/std/score/ym/final/list.htm'
- //data : {batch: "first"}
- }, function(response) {
- $rootScope.ScoreArray = response.array;
- for (var i=0;i<response.array.length;i++) {
- if (response.array[i].batch == 'first') {
- $scope.hasFirstScore = true;
- } else if (response.array[i].batch == 'final') {
- $scope.hasFinalScore = true;
- }
- }
- /*var qualified_total = 0;
- for(var i=0;i<response.array.length;i++){
- if(response.array[i].aspect_qualified !='不合格')
- qualified_total ++;
- }
- $rootScope.qualified_total = qualified_total ;*/
- });
- }
- //初试成绩
- $scope.goFirstScore = function(e) {
- //debugger;
- $rootScope.goLocation('ym/score/' + e.aspect_name + '/first');//初试成绩
- }
- //复试成绩
- $scope.goFinalScore = function(e) {
- //debugger;
- $rootScope.goLocation('ym/score/' + e.aspect_name + '/final');//复试成绩
- }
- $scope.goAddr = function(e) {
- //debugger;
- $rootScope.goLocation('ym/addr');//邮寄地址修改界面
- }
- $scope.getEnrolArray2();
- $scope.getScoreArray();
-
- //志愿填报
- $scope.stdWish = function(e){
- if(e) {
- $rootScope.goLocation('wish/std/' + e.aspect_id);
- } else {
- $rootScope.goLocation('wish/std/null');
- }
- }
- } ])
|