seimin 6 months ago
parent
commit
01fe044308
1 changed files with 9 additions and 3 deletions
  1. 9 3
      src/app/views/fuwutai/fuwutai.component.ts

+ 9 - 3
src/app/views/fuwutai/fuwutai.component.ts

@@ -1349,6 +1349,8 @@ export class FuwutaiComponent implements OnInit {
1349
       this.preState = '';
1349
       this.preState = '';
1350
       //连接
1350
       //连接
1351
       tlwsa.tlaOpen(this.incomingService.getSocketUrl());
1351
       tlwsa.tlaOpen(this.incomingService.getSocketUrl());
1352
+    }else{
1353
+      this.websocketLoading = false;
1352
     }
1354
     }
1353
   }
1355
   }
1354
 
1356
 
@@ -2342,6 +2344,8 @@ export class FuwutaiComponent implements OnInit {
2342
     }
2344
     }
2343
     if (this.incomingService.getPhoneNumber()) {
2345
     if (this.incomingService.getPhoneNumber()) {
2344
       this.getWebsocketPhone();
2346
       this.getWebsocketPhone();
2347
+    }else{
2348
+      this.websocketLoading = false;
2345
     }
2349
     }
2346
   }
2350
   }
2347
   // 点击tab切换
2351
   // 点击tab切换
@@ -4621,12 +4625,14 @@ export class FuwutaiComponent implements OnInit {
4621
       //签出
4625
       //签出
4622
       this.btnLoading = false;
4626
       this.btnLoading = false;
4623
       this.delModal = false;
4627
       this.delModal = false;
4624
-      this.msg.info('签出成功');
4625
-
4628
+      this.msg.success('签出成功');
4626
       if(this.incomingService.getSign() === 'box'){
4629
       if(this.incomingService.getSign() === 'box'){
4627
         this.incomingService.closeWs(true);
4630
         this.incomingService.closeWs(true);
4631
+        this.incomingService.removeSign();
4628
       }if(this.incomingService.getSign() === 'callCenter'){
4632
       }if(this.incomingService.getSign() === 'callCenter'){
4629
-        this.jry_qianchu();
4633
+        this.incomingService.closeWs(true);
4634
+        this.incomingService.removeSign();
4635
+        this.incomingService.removeSocketUrl();
4630
       }
4636
       }
4631
       this.incomingService.removePhoneNumber();
4637
       this.incomingService.removePhoneNumber();
4632
     }
4638
     }