1234567891011121314151617181920212223242526 |
- angular.module('push')
- .controller('noticeServiceDetailCtrl', function ($scope, $stateParams, AccountService) {
- $scope.epidemic = $stateParams.epidemic;
- //转为解决中
- $scope.changeStatusHandling = function () {
- $scope.status = 0;
- }
- //转为已解决
- $scope.changeStatusHandled = function () {
- $scope.status = 1;
- }
- //转为不予解决
- $scope.changeStatusNoHanddle = function () {
- $scope.status = 2;
- }
- //提交
- $scope.updateEpidemicService = function () {
- $scope.epidemic.status = $scope.status;
- AccountService.updateEpidemicService($scope.epidemic).then(function (res) {
- if (res.code == 3350) {
- $scope.go('noticeService');
- }
- })
- }
- });
|