Commit 12b009b1 authored by frank's avatar frank 🏀

传感器历史数据页面有个bug,历史数据无法获取

parent 68cef080
Pipeline #531 passed with stage
in 0 seconds
...@@ -184,7 +184,7 @@ export class SensorDetailComponent implements OnInit { ...@@ -184,7 +184,7 @@ export class SensorDetailComponent implements OnInit {
// this.hisTopicName = this.wayData[0].topicName; // this.hisTopicName = this.wayData[0].topicName;
this.hisTopicName = this.selectedTopicValue; this.hisTopicName = this.selectedTopicValue;
this.api.data.getHisData([{ alias: this.hisDevInfo.alias, deviceList: [{sn: this.hisDevInfo.SN, this.api.data.getHisData([{ alias: this.hisDevInfo.alias, deviceList: [{sn: this.hisDevInfo.SN,
type: this.hisDevInfo.dType}], endTime: this.selectTime3 ? new Date().getTime() : this.req3.startTime, type: this.hisDevInfo.dType}], endTime: this.selectTime3 ? new Date().getTime() : this.req3.endTime,
offset: 0 - new Date().getTimezoneOffset() / 60, offset: 0 - new Date().getTimezoneOffset() / 60,
startTime: this.selectTime3 ? new Date().getTime() - this.selectTime3 * 60 * 60 * 1000 : this.req3.startTime, startTime: this.selectTime3 ? new Date().getTime() - this.selectTime3 * 60 * 60 * 1000 : this.req3.startTime,
topicName: this.hisTopicName}, (data) => { topicName: this.hisTopicName}, (data) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment