xufenglei
2018-08-03 b8941db692db2e54f6f4a6dc36c500ce53e2da5a
src/app/routes/devices/basic-info/device-edit/device-edit.component.ts
@@ -20,6 +20,7 @@
  styles: []
})
export class DeviceEditComponent implements OnInit {
  public isEditState = true;
  public monitorPoints: any [] = [];
  public professions: any [] = [];
  public deviceVersions: any [] = [];
@@ -80,6 +81,10 @@
    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 => {