seimin před 3 roky
rodič
revize
d78d240763

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

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