Commit 54aef0ff authored by van.chen's avatar van.chen

所有influxdbNo默认

parent 80c2f0e9
...@@ -222,7 +222,7 @@ export class GatewayComponent implements OnInit { ...@@ -222,7 +222,7 @@ export class GatewayComponent implements OnInit {
this.req3 = { this.req3 = {
address: '', address: '',
deviceNo: one.deviceNo, deviceNo: one.deviceNo,
influxdbDatabaseNo: '', influxdbDatabaseNo: 'ITN78344312655581185',
pDeviceNo: '' pDeviceNo: ''
}; };
this.try = { this.try = {
...@@ -287,14 +287,14 @@ export class GatewayComponent implements OnInit { ...@@ -287,14 +287,14 @@ export class GatewayComponent implements OnInit {
} else if (!this.isMulti && this.isBindConV) { } else if (!this.isMulti && this.isBindConV) {
this.req3.device = null; this.req3.device = null;
this.req3.pDeviceNo = this.req3.device.deviceNo; this.req3.pDeviceNo = this.req3.device.deviceNo;
this.req3.influxdbDatabaseNo = this.req3.device.influxdbDatabaseNo; this.req3.influxdbDatabaseNo = this.req3.device.influxdbDatabaseNo ? this.req3.device.influxdbDatabaseNo : 'ITN78344312655581185';
this.api.device.gatewayBindGateway([this.req3, this.next]); this.api.device.gatewayBindGateway([this.req3, this.next]);
} else if (this.isMulti && this.isMultiAddConV) { } else if (this.isMulti && this.isMultiAddConV) {
this.api.device.batchAddGateway([this.req, this.next]); this.api.device.batchAddGateway([this.req, this.next]);
} else if (this.isMulti && this.isBindConV) { } else if (this.isMulti && this.isBindConV) {
this.req3.bindDeviceAddressVos = []; this.req3.bindDeviceAddressVos = [];
this.req3.pDeviceNo = this.req3.device.deviceNo; this.req3.pDeviceNo = this.req3.device.deviceNo;
this.req3.influxdbDatabaseNo = this.req3.device.influxdbDatabaseNo; this.req3.influxdbDatabaseNo = this.req3.device.influxdbDatabaseNo ? this.req3.device.influxdbDatabaseNo : 'ITN78344312655581185';
this.req3.device = null; this.req3.device = null;
this.data.map((one, index) => { this.data.map((one, index) => {
if (one.checked) { if (one.checked) {
......
...@@ -242,7 +242,7 @@ export class SensorMgrComponent implements OnInit { ...@@ -242,7 +242,7 @@ export class SensorMgrComponent implements OnInit {
this.req3 = { this.req3 = {
address: '', address: '',
deviceNo: one.deviceNo, deviceNo: one.deviceNo,
influxdbDatabaseNo: '', influxdbDatabaseNo: 'ITN78344312655581185',
pDeviceNo: '' pDeviceNo: ''
}; };
this.isBindConV = true; this.isBindConV = true;
...@@ -306,7 +306,7 @@ export class SensorMgrComponent implements OnInit { ...@@ -306,7 +306,7 @@ export class SensorMgrComponent implements OnInit {
this.api.device.updateSensor([this.req, this.next]); this.api.device.updateSensor([this.req, this.next]);
} else if (!this.isMulti && this.isBindConV) { } else if (!this.isMulti && this.isBindConV) {
this.req3.pDeviceNo = this.req3.device.deviceNo; this.req3.pDeviceNo = this.req3.device.deviceNo;
this.req3.influxdbDatabaseNo = this.req3.device.influxdbDatabaseNo; this.req3.influxdbDatabaseNo = this.req3.device.influxdbDatabaseNo ? this.req3.device.influxdbDatabaseNo : 'ITN78344312655581185';
this.api.device.gatewayBindGateway([this.req3, this.next]); this.api.device.gatewayBindGateway([this.req3, this.next]);
} else if (!this.isMulti && this.isDivideConV) { } else if (!this.isMulti && this.isDivideConV) {
this.api.device.updateCompany([this.req5, this.next]); this.api.device.updateCompany([this.req5, this.next]);
......
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