seimin 2 周之前
父節點
當前提交
3f0125141b
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/app/views/new-statistics/components/query-range/query-range.component.ts

+ 1 - 3
src/app/views/new-statistics/components/query-range/query-range.component.ts

@@ -40,7 +40,6 @@ export class QueryRangeComponent implements OnInit {
40
       hospital: [(this.hospital && (this.queryType == 2 || this.queryType == 3)) ? this.hospital.id : null],
40
       hospital: [(this.hospital && (this.queryType == 2 || this.queryType == 3)) ? this.hospital.id : null],
41
       duty: [(this.duty && this.queryType == 3) ? this.duty.id : null],
41
       duty: [(this.duty && this.queryType == 3) ? this.duty.id : null],
42
       dutyOne: [(this.duty && this.queryType == 4) ? this.duty.id : null],
42
       dutyOne: [(this.duty && this.queryType == 4) ? this.duty.id : null],
43
-			parent :[this.parent, [Validators.required]]
44
     });
43
     });
45
   }
44
   }
46
   // 表单提交
45
   // 表单提交
@@ -53,7 +52,6 @@ export class QueryRangeComponent implements OnInit {
53
     let queryType = this.validateForm.value.queryType;
52
     let queryType = this.validateForm.value.queryType;
54
     let hospital;
53
     let hospital;
55
     let duty;
54
     let duty;
56
-		let parent = this.validateForm.value.parent;
57
     switch (queryType) {
55
     switch (queryType) {
58
       case 1:
56
       case 1:
59
         break;
57
         break;
@@ -69,7 +67,7 @@ export class QueryRangeComponent implements OnInit {
69
         duty = this.dutyOneList.find(v => v.id == this.validateForm.value.dutyOne);
67
         duty = this.dutyOneList.find(v => v.id == this.validateForm.value.dutyOne);
70
         break;
68
         break;
71
     }
69
     }
72
-    this.submitQueryRange.emit({queryType, hospital, duty, parent});
70
+    this.submitQueryRange.emit({queryType, hospital, duty});
73
     this.hideModal();
71
     this.hideModal();
74
   }
72
   }
75
 
73