/** * Created by pushkeji on 2018/8/10. */ angular.module('push') .controller('technicalRewardCheckCtrl', ['$scope', '$stateParams', 'AccountService', '$q', 'UserService', function ($scope, $stateParams, AccountService, $q, UserService) { $scope.defaultLan = UserService.defaultLan; $scope.comefrom = $stateParams.comefrom; $scope.checkList = []; var technicalCheckList = function () { AccountService.technicalCheckList().then(function (res) { if (res.code == 3350) { angular.forEach(res.data, function (value, index) { if (value.demandstatus != -4) { $scope.checkList.push(value); } }); } }) } technicalCheckList(); $scope.jumpToTechDemand = function (list) { $scope.go('technicalCheckDetail', {id: list.id, comefrom: 'myCheck'}); } }]);