Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
witiumCloud2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WitCloud
witiumCloud2
Commits
54aef0ff
Commit
54aef0ff
authored
Apr 29, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
所有influxdbNo默认
parent
80c2f0e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
gateway.component.ts
src/app/main/gateway/gateway.component.ts
+3
-3
sensor-mgr.component.ts
src/app/main/sensor-mgr/sensor-mgr.component.ts
+2
-2
No files found.
src/app/main/gateway/gateway.component.ts
View file @
54aef0ff
...
...
@@ -222,7 +222,7 @@ export class GatewayComponent implements OnInit {
this
.
req3
=
{
address
:
''
,
deviceNo
:
one
.
deviceNo
,
influxdbDatabaseNo
:
''
,
influxdbDatabaseNo
:
'
ITN78344312655581185
'
,
pDeviceNo
:
''
};
this
.
try
=
{
...
...
@@ -287,14 +287,14 @@ export class GatewayComponent implements OnInit {
}
else
if
(
!
this
.
isMulti
&&
this
.
isBindConV
)
{
this
.
req3
.
device
=
null
;
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
]);
}
else
if
(
this
.
isMulti
&&
this
.
isMultiAddConV
)
{
this
.
api
.
device
.
batchAddGateway
([
this
.
req
,
this
.
next
]);
}
else
if
(
this
.
isMulti
&&
this
.
isBindConV
)
{
this
.
req3
.
bindDeviceAddressVos
=
[];
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
.
data
.
map
((
one
,
index
)
=>
{
if
(
one
.
checked
)
{
...
...
src/app/main/sensor-mgr/sensor-mgr.component.ts
View file @
54aef0ff
...
...
@@ -242,7 +242,7 @@ export class SensorMgrComponent implements OnInit {
this
.
req3
=
{
address
:
''
,
deviceNo
:
one
.
deviceNo
,
influxdbDatabaseNo
:
''
,
influxdbDatabaseNo
:
'
ITN78344312655581185
'
,
pDeviceNo
:
''
};
this
.
isBindConV
=
true
;
...
...
@@ -306,7 +306,7 @@ export class SensorMgrComponent implements OnInit {
this
.
api
.
device
.
updateSensor
([
this
.
req
,
this
.
next
]);
}
else
if
(
!
this
.
isMulti
&&
this
.
isBindConV
)
{
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
]);
}
else
if
(
!
this
.
isMulti
&&
this
.
isDivideConV
)
{
this
.
api
.
device
.
updateCompany
([
this
.
req5
,
this
.
next
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment