| | |
| | | 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']); |