浏览代码

新建事件BUG

seimin 1 年之前
父节点
当前提交
e829c01ce9
共有 1 个文件被更改,包括 1 次插入3 次删除
  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){