|  |  |  | 
|---|
|  |  |  | this.deviceService.countByExample(example).subscribe( | 
|---|
|  |  |  | res => { | 
|---|
|  |  |  | if (!!res && !!res.code) { | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | const count = res.data; | 
|---|
|  |  |  | const pages = Math.ceil(count / this.simpleTable.ps); | 
|---|
|  |  |  | const pi = this.simpleTable.pi > pages ? pages : this.simpleTable.pi; | 
|---|
|  |  |  | this.simpleTable.load(pi); | 
|---|
|  |  |  | }, 1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | 
|---|
|  |  |  | if (d != null) { | 
|---|
|  |  |  | Object.assign(data, d); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const configMap = this.queryMap; | 
|---|
|  |  |  | let configMap = {}; | 
|---|
|  |  |  | configMap = Object.assign(configMap, this.queryMap); | 
|---|
|  |  |  | // Object.assign(configMap, this.queryMap); | 
|---|
|  |  |  | if (!!configMap['mpointId'] && !d['monitorPoint']) { | 
|---|
|  |  |  | data['monitorPoint'] = this.getMonitorPoint(configMap['mpointId']); | 
|---|
|  |  |  | 
|---|
|  |  |  | orgId: number = null; | 
|---|
|  |  |  | validateForm: FormGroup; | 
|---|
|  |  |  | ngOnInit() { | 
|---|
|  |  |  | console.log(this.configMap); | 
|---|
|  |  |  | //   console.log(this.configMap); | 
|---|
|  |  |  | if (!!this.data) { | 
|---|
|  |  |  | Object.assign(this.originalData, this.data); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | if (d != null) { | 
|---|
|  |  |  | Object.assign(data, d); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const configMap = this.queryMap; | 
|---|
|  |  |  | let configMap = {}; | 
|---|
|  |  |  | configMap = Object.assign(configMap, this.queryMap); | 
|---|
|  |  |  | this.modalHelper.static(MonitorPointEditComponent, { data, configMap }).subscribe( | 
|---|
|  |  |  | (ret: { data: any, close: Function }) => { | 
|---|
|  |  |  | // 修改状态 | 
|---|