noticeServiceDetailCtrl.js 875 B

1234567891011121314151617181920212223242526
  1. angular.module('push')
  2. .controller('noticeServiceDetailCtrl', function ($scope, $stateParams, AccountService) {
  3. $scope.epidemic = $stateParams.epidemic;
  4. //转为解决中
  5. $scope.changeStatusHandling = function () {
  6. $scope.status = 0;
  7. }
  8. //转为已解决
  9. $scope.changeStatusHandled = function () {
  10. $scope.status = 1;
  11. }
  12. //转为不予解决
  13. $scope.changeStatusNoHanddle = function () {
  14. $scope.status = 2;
  15. }
  16. //提交
  17. $scope.updateEpidemicService = function () {
  18. $scope.epidemic.status = $scope.status;
  19. AccountService.updateEpidemicService($scope.epidemic).then(function (res) {
  20. if (res.code == 3350) {
  21. $scope.go('noticeService');
  22. }
  23. })
  24. }
  25. });