Ver código fonte

抢单加loading

seimin 1 ano atrás
pai
commit
d54b4ce067
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      assets/js/controllers/incident/incidentCtrl.js

+ 2 - 0
assets/js/controllers/incident/incidentCtrl.js

@@ -1924,11 +1924,13 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1924 1924
                 $scope.connect = "确认抢单?";
1925 1925
                 $scope.ok = function () {
1926 1926
                     //接收任务//请求重新指派
1927
+                    $rootScope.isMask = true;
1927 1928
                     var data = receiveTask($scope.receive_code, modelData);
1928 1929
                     APIService.claimAndCompletedTask(data.taskId, {
1929 1930
                         userId: currentUserId,
1930 1931
                         receive_code: "handler"
1931 1932
                     }).then(function (response) {
1933
+                        $rootScope.isMask = false;
1932 1934
                         if (response.status == 200) {
1933 1935
                             Alert.swal({
1934 1936
                                 title: "操作成功!",