seimin месяцев назад: 6
Родитель
Сommit
01fe044308
1 измененных файлов с 9 добавлено и 3 удалено
  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 1349
       this.preState = '';
1350 1350
       //连接
1351 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 2345
     if (this.incomingService.getPhoneNumber()) {
2344 2346
       this.getWebsocketPhone();
2347
+    }else{
2348
+      this.websocketLoading = false;
2345 2349
     }
2346 2350
   }
2347 2351
   // 点击tab切换
@@ -4621,12 +4625,14 @@ export class FuwutaiComponent implements OnInit {
4621 4625
       //签出
4622 4626
       this.btnLoading = false;
4623 4627
       this.delModal = false;
4624
-      this.msg.info('签出成功');
4625
-
4628
+      this.msg.success('签出成功');
4626 4629
       if(this.incomingService.getSign() === 'box'){
4627 4630
         this.incomingService.closeWs(true);
4631
+        this.incomingService.removeSign();
4628 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 4637
       this.incomingService.removePhoneNumber();
4632 4638
     }