Ver código fonte

事件分类BUG

seimin 3 anos atrás
pai
commit
6f6f4f7294

+ 1 - 1
assets/js/controllers/system/processdesign/incidentplan/incidentSetUpCtrl.js

@@ -158,7 +158,7 @@ app.controller('incidentSetUp', ["$rootScope", "$scope", "$state", "$timeout", "
158
     };
158
     };
159
    
159
    
160
     $scope.addType = function(element) {
160
     $scope.addType = function(element) {
161
-            $scope.tree_data = angular.copy($scope.dataSave);
161
+            $scope.tree_data = $scope.dataSave.length?angular.copy($scope.dataSave):$scope.tree_data;
162
             $scope.addcate = true
162
             $scope.addcate = true
163
             $scope.changecate = false
163
             $scope.changecate = false
164
                 // var modalInstance = $modal.open({
164
                 // var modalInstance = $modal.open({