seimin 3 月之前
父节点
当前提交
bdf32262a0

+ 2 - 2
src/app/components/configurationCenter/configuration-manHour/configuration-manHour.component.ts

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