|
|
|
@ -54,10 +54,8 @@ export class CompanyEditComponent implements OnInit { |
|
|
|
|
this.validateForm = this.fb.group({ |
|
|
|
|
loginName: [null, [Validators.required, ValidatorsService.maxLength(20)]], |
|
|
|
|
password: [null, [Validators.required]], |
|
|
|
|
phone: [null, [Validators.required]], |
|
|
|
|
regionId: [null], |
|
|
|
|
name: [null, [Validators.required, ValidatorsService.maxLength(50)]], |
|
|
|
|
address: [null, [Validators.required, ValidatorsService.maxLength(80)]], |
|
|
|
|
logo: [null], |
|
|
|
|
regionName: [null], |
|
|
|
|
company: {}, |
|
|
|
@ -96,8 +94,6 @@ export class CompanyEditComponent implements OnInit { |
|
|
|
|
} |
|
|
|
|
this.validateForm.value['company']['name'] = this.validateForm.value.name; |
|
|
|
|
this.validateForm.value['company']['regionId'] = this.regionId; |
|
|
|
|
this.validateForm.value['company']['address'] = this.validateForm.value.address; |
|
|
|
|
this.validateForm.value['company']['phone'] = this.validateForm.value.phone; |
|
|
|
|
this.validateForm.value['company']['logo'] = this.validateForm.value.logo; |
|
|
|
|
this.validateForm.value['user']['loginName'] = this.validateForm.value.loginName; |
|
|
|
|
this.validateForm.value['user']['password'] = this.validateForm.value.password; |
|
|
|
|