Commit 1e328e31 authored by frank's avatar frank 🏀

添加默认绑定数据库名称

parent b728e116
......@@ -180,7 +180,7 @@ export class SensorDetailComponent implements OnInit {
getHistoryData(): void {
this.hisTopicName = 'Witium/' + this.type + '/' + this.sn + '/' + 'Data';
this.hisTopicName = this.wayData[0].topicName;
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,
offset: 0 - new Date().getTimezoneOffset() / 60,
......
......@@ -314,6 +314,7 @@ export class SensorMgrComponent implements OnInit {
this.req.alarmMethodNos = [];
this.req.alarmUsers = [];
this.req.model = 1;
this.req.influxdbDatabaseNo = 'ITN78344312655581185';
this.api.device.updateSensor([this.req, this.next]);
// 单个绑定
} else if (!this.isMulti && this.isBindConV) {
......
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