Browse Source

BUG修复

seimin 3 years ago
parent
commit
d646edd28c

+ 2 - 1
src/app/views/regular-off-duty/regular-off-duty.component.ts

@@ -70,9 +70,10 @@ export class RegularOffDutyComponent implements OnInit {
70
   // 确认立即执行
70
   // 确认立即执行
71
   confirmExec() {
71
   confirmExec() {
72
     this.btnLoading = true;
72
     this.btnLoading = true;
73
-    let posData = this.coopItem.classesIds.split(',');
73
+    let posData = this.coopItem.classesIds.split(",");
74
     this.mainService.executeNowClassesJob(posData).subscribe((result: any) => {
74
     this.mainService.executeNowClassesJob(posData).subscribe((result: any) => {
75
       this.closeExecModal();
75
       this.closeExecModal();
76
+      this.btnLoading = false;
76
       if (result.status == 200) {
77
       if (result.status == 200) {
77
         this.showPromptModal("当前班次下班", true, "");
78
         this.showPromptModal("当前班次下班", true, "");
78
       } else {
79
       } else {

+ 1 - 0
src/app/views/round-robin/round-robin.component.ts

@@ -661,6 +661,7 @@ export class RoundRobinComponent implements OnInit {
661
       .executeNowOrderPlan(this.coopItem.id)
661
       .executeNowOrderPlan(this.coopItem.id)
662
       .subscribe((result: any) => {
662
       .subscribe((result: any) => {
663
         this.closeExecModal();
663
         this.closeExecModal();
664
+        this.btnLoading = false;
664
         if (result.status == 200) {
665
         if (result.status == 200) {
665
           this.showPromptModal("立即执行", true, "");
666
           this.showPromptModal("立即执行", true, "");
666
         } else {
667
         } else {