| | |
| | | import { ExampleService } from '@business/services/util/example.service'; |
| | | import { Observable } from 'rxjs/Observable'; |
| | | import { OrganizationService } from '@business/services/http/organization.service'; |
| | | import { debug } from 'util'; |
| | | |
| | | @Component({ |
| | | selector: 'app-device-edit', |
| | |
| | | styles: [] |
| | | }) |
| | | export class DeviceEditComponent implements OnInit { |
| | | public isEditState = true; |
| | | public monitorPoints: any [] = []; |
| | | public professions: any [] = []; |
| | | public deviceVersions: any [] = []; |
| | |
| | | this.validateForm = this.formBuilder.group( |
| | | validates |
| | | ); |
| | | if(!this.isEditState){ |
| | | this.validateForm.disable(); |
| | | } |
| | | this.validateForm |
| | | this.orgSelectChange(); |
| | | const control = this.validateForm.controls['monitorPointId']; |
| | | control.valueChanges.subscribe(value => { |