|
@@ -101,6 +101,8 @@ export class ClassesManagementComponent implements OnInit {
|
101
|
101
|
this.validateForm = this.fb.group({
|
102
|
102
|
classesName: [null, [Validators.required]],
|
103
|
103
|
description: [null, [Validators.required]],
|
|
104
|
+ bindCall: [0, [Validators.required]],
|
|
105
|
+ bindPriority: [0, [Validators.required]],
|
104
|
106
|
datesType: [null, [this.dateValidator]],
|
105
|
107
|
// 时间段1
|
106
|
108
|
timerF1: [null, [Validators.required]],
|
|
@@ -189,6 +191,8 @@ export class ClassesManagementComponent implements OnInit {
|
189
|
191
|
{
|
190
|
192
|
name: that.validateForm.value.classesName,
|
191
|
193
|
describe: that.validateForm.value.description,
|
|
194
|
+ bindCall: that.validateForm.value.bindCall,
|
|
195
|
+ bindPriority: that.validateForm.value.bindPriority,
|
192
|
196
|
scheduleClassTimes: times,
|
193
|
197
|
type: that.validateForm.value.datesType,
|
194
|
198
|
hospital: { id: this.hospital },
|
|
@@ -258,6 +262,8 @@ export class ClassesManagementComponent implements OnInit {
|
258
|
262
|
this.coopId = data.id;
|
259
|
263
|
this.validateForm.controls.classesName.setValue(data.name);
|
260
|
264
|
this.validateForm.controls.description.setValue(data.describe);
|
|
265
|
+ this.validateForm.controls.bindCall.setValue(data.bindCall);
|
|
266
|
+ this.validateForm.controls.bindPriority.setValue(data.bindPriority);
|
261
|
267
|
if (data.type == 1) {
|
262
|
268
|
this.oneOption[0]['checked'] = true;
|
263
|
269
|
} else if (data.type == 2) {
|