Parcourir la source

新建事件BUG

seimin il y a 11 mois
Parent
commit
e829c01ce9
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      assets/js/controllers/mainCtrl.js

+ 1 - 3
assets/js/controllers/mainCtrl.js

@@ -4839,7 +4839,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
4839
           $scope.jry_requesterSearch();
4839
           $scope.jry_requesterSearch();
4840
           $scope.$watch("incidentModel.requester", function (newVal,oldVal) {
4840
           $scope.$watch("incidentModel.requester", function (newVal,oldVal) {
4841
             if(newVal){
4841
             if(newVal){
4842
-              if($scope.modelData && newVal.id == oldVal.id){
4842
+              if($scope.modelData && newVal == oldVal){
4843
               }else{
4843
               }else{
4844
                 $scope.incidentModel.contacts = newVal.name;
4844
                 $scope.incidentModel.contacts = newVal.name;
4845
                 SweetAlert.swal({
4845
                 SweetAlert.swal({
@@ -5178,8 +5178,6 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
5178
 
5178
 
5179
             if($scope.modelData && newVal == oldVal){
5179
             if($scope.modelData && newVal == oldVal){
5180
 
5180
 
5181
-            }else if($scope.modelData && newVal.id === oldVal.id){
5182
-
5183
             }else{
5181
             }else{
5184
               if(newVal){
5182
               if(newVal){
5185
                 if($scope.incidentModel.department){
5183
                 if($scope.incidentModel.department){