|
@@ -214,9 +214,9 @@ export class ConfigurationManHourComponent implements OnInit {
|
214
|
214
|
this.modalCategory = true;
|
215
|
215
|
this.initCategoryForm();
|
216
|
216
|
if(type == 1){
|
217
|
|
- this.('parent', false);
|
|
217
|
+ this.requiredChange('parent', false);
|
218
|
218
|
}else if(type == 2){
|
219
|
|
- this.('parent', true);
|
|
219
|
+ this.requiredChange('parent', true);
|
220
|
220
|
}
|
221
|
221
|
console.log(this['activeCategory' + type])
|
222
|
222
|
this.validateCategoryForm.controls.parent.setValue(this['activeCategory' + type].parent ? this['activeCategory' + type].parent.id : null);
|