|
@@ -276,6 +276,7 @@ export class EmergencyInfoComponent implements OnInit {
|
276
|
276
|
this.btnLoading = false;
|
277
|
277
|
this.hideModal();
|
278
|
278
|
this.initForm();
|
|
279
|
+ this.operateType = 'no'
|
279
|
280
|
if (data.status == 200) {
|
280
|
281
|
this.showPromptModal(this.add ? "新增" : "编辑", true, "");
|
281
|
282
|
} else {
|
|
@@ -295,6 +296,7 @@ export class EmergencyInfoComponent implements OnInit {
|
295
|
296
|
this.btnLoading = false;
|
296
|
297
|
this.hideModal();
|
297
|
298
|
this.initForm();
|
|
299
|
+ this.operateType = 'no'
|
298
|
300
|
if (data.status == 200) {
|
299
|
301
|
this.showPromptModal(this.add ? "新增" : "编辑", true, "");
|
300
|
302
|
} else {
|
|
@@ -340,6 +342,7 @@ export class EmergencyInfoComponent implements OnInit {
|
340
|
342
|
.subscribe((data) => {
|
341
|
343
|
this.btnLoading = false;
|
342
|
344
|
this.hideOptModal();
|
|
345
|
+ this.operateType = 'no'
|
343
|
346
|
if (data.status == 200) {
|
344
|
347
|
this.showPromptModal("操作", true, "");
|
345
|
348
|
} else {
|
|
@@ -366,6 +369,7 @@ export class EmergencyInfoComponent implements OnInit {
|
366
|
369
|
}
|
367
|
370
|
|
368
|
371
|
// 确定发送消息
|
|
372
|
+ operateType:any;
|
369
|
373
|
confirmSend(){
|
370
|
374
|
let data = {
|
371
|
375
|
alarm:{
|
|
@@ -380,6 +384,7 @@ export class EmergencyInfoComponent implements OnInit {
|
380
|
384
|
this.btnLoading = false;
|
381
|
385
|
this.sendModal = false;
|
382
|
386
|
if (data.status == 200) {
|
|
387
|
+ this.operateType = 'send'
|
383
|
388
|
this.showPromptModal("操作", true, "");
|
384
|
389
|
} else {
|
385
|
390
|
this.showPromptModal("操作", false, data.msg);
|
|
@@ -496,7 +501,11 @@ export class EmergencyInfoComponent implements OnInit {
|
496
|
501
|
setTimeout(() => {
|
497
|
502
|
this.promptModalShow = true;
|
498
|
503
|
}, 100);
|
499
|
|
- this.getList(true);
|
|
504
|
+ if(this.operateType = 'send'){
|
|
505
|
+ this.getList();
|
|
506
|
+ }else{
|
|
507
|
+ this.getList(true);
|
|
508
|
+ }
|
500
|
509
|
}
|
501
|
510
|
|
502
|
511
|
// 边输边搜节流阀
|