|
|
|
@ -29,6 +29,7 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
constructor(private message: NzMessageService, private element: ElementRef, private http: HttpClient, private cd: ChangeDetectorRef, private fb: FormBuilder) { } |
|
|
|
|
validateForm!: FormGroup; |
|
|
|
|
validateForm2!: FormGroup; |
|
|
|
|
validateForm3!: FormGroup; |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.validateForm = this.fb.group({ |
|
|
|
|
name: [null, [Validators.required]], |
|
|
|
@ -41,6 +42,10 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
node: [null, [Validators.required]] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.validateForm3 = this.fb.group({ |
|
|
|
|
name: [null, [Validators.required]] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.editMode = PlanComponent.instance.editMode |
|
|
|
|
this.initComponent() |
|
|
|
|
} |
|
|
|
@ -402,7 +407,16 @@ export class LeftDomainComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//编辑预案名称
|
|
|
|
|
editDisposal(e) { |
|
|
|
|
editDisposal() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.validateForm3.valid) { |
|
|
|
|
this.message.create('warning', '请填写完整!'); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let e = this.validateForm3.value |
|
|
|
|
|
|
|
|
|
this.editSelectDisposal.name = e.name |
|
|
|
|
this.editSelectDisposal = null |
|
|
|
|
} |
|
|
|
|