technicalRewardCheckCtrl.js 997 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Created by pushkeji on 2018/8/10.
  3. */
  4. angular.module('push')
  5. .controller('technicalRewardCheckCtrl', ['$scope', '$stateParams', 'AccountService', '$q', 'UserService', function ($scope, $stateParams, AccountService, $q, UserService) {
  6. $scope.defaultLan = UserService.defaultLan;
  7. $scope.comefrom = $stateParams.comefrom;
  8. $scope.checkList = [];
  9. var technicalCheckList = function () {
  10. AccountService.technicalCheckList().then(function (res) {
  11. if (res.code == 3350) {
  12. angular.forEach(res.data, function (value, index) {
  13. if (value.demandstatus != -4) {
  14. $scope.checkList.push(value);
  15. }
  16. });
  17. }
  18. })
  19. }
  20. technicalCheckList();
  21. $scope.jumpToTechDemand = function (list) {
  22. $scope.go('technicalCheckDetail', {id: list.id, comefrom: 'myCheck'});
  23. }
  24. }]);