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