seimin 3 years ago
parent
commit
d78d240763
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/app/views/drug-search/drug-search.component.ts

+ 3 - 0
src/app/views/drug-search/drug-search.component.ts

@@ -45,10 +45,13 @@ export class DrugSearchComponent implements OnInit {
45
     this.delModal = false;
45
     this.delModal = false;
46
   }
46
   }
47
   // 确认
47
   // 确认
48
+  btnLoading: boolean = false; //提交按钮loading状态
48
   confirmDel() {
49
   confirmDel() {
50
+    this.btnLoading = true;
49
     this.mainService
51
     this.mainService
50
       .coopDataM("drugsBag","updData", "drugsBag", {"drugsBag":{"hosId":1,"isEmpty":'ok'}})
52
       .coopDataM("drugsBag","updData", "drugsBag", {"drugsBag":{"hosId":1,"isEmpty":'ok'}})
51
       .subscribe((data) => {
53
       .subscribe((data) => {
54
+        this.btnLoading = false;
52
         this.delModal = false;
55
         this.delModal = false;
53
         this.getList(1);
56
         this.getList(1);
54
       });
57
       });