ソースを参照

Merge branch 'master' into lmm

seimin 11 ヶ月 前
コミット
339c0cf4f2
共有1 個のファイルを変更した13 個の追加23 個の削除を含む
  1. 13 23
      assets/js/controllers/system/organizationdesign/worktimeCtrl.js

+ 13 - 23
assets/js/controllers/system/organizationdesign/worktimeCtrl.js

@@ -407,29 +407,19 @@ app.controller('woketimeCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
407 407
                 if (selectedItem.length > 0) {
408 408
                     api_bpm_data.rmvData('scheduleclass', selectedItem).then(function(response) {
409 409
                         if (response.status == 200) {
410
-                            if(response.data && !response.data.priority && !response.data.type){
411
-                                SweetAlert.swal({
412
-                                    title: "操作异常!",
413
-                                    text: "优先级重复!",
414
-                                    type: "error"
415
-                                });
416
-                            }else{
417
-                                SweetAlert.swal({
418
-                                    title: "删除成功!",
419
-                                    type: "success",
420
-                                    confirmButtonColor: "#007AFF"
421
-                                }, function() {
422
-                                    $scope.refreshData('expand-right', defaultFilterData);
423
-                                    // $scope.myData = _.reject($scope.myData, function(o) { return _.includes(selectedItem, o.id); });
424
-                                    // $scope.selected = {
425
-                                    //     items: []
426
-                                    // };
427
-                                    // $scope.gridOptions.totalItems = $scope.gridOptions.totalItems - selectedItem.length
428
-                                    $scope.gridApi.grid.selection.selectedCount = 0;
429
-                                });
430
-                            }
431
-
432
-
410
+                            SweetAlert.swal({
411
+                                title: "删除成功!",
412
+                                type: "success",
413
+                                confirmButtonColor: "#007AFF"
414
+                            }, function() {
415
+                                $scope.refreshData('expand-right', defaultFilterData);
416
+                                // $scope.myData = _.reject($scope.myData, function(o) { return _.includes(selectedItem, o.id); });
417
+                                // $scope.selected = {
418
+                                //     items: []
419
+                                // };
420
+                                // $scope.gridOptions.totalItems = $scope.gridOptions.totalItems - selectedItem.length
421
+                                $scope.gridApi.grid.selection.selectedCount = 0;
422
+                            });
433 423
                         } else {
434 424
                             SweetAlert.swal({
435 425
                                 title: "操作异常!",