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
47c6c52f
Commit
47c6c52f
authored
Apr 07, 2021
by
yating.lin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉网关管理详情、传感器管理详情页未使用的接口:probes.getProbesByGateway
parent
8e659610
Pipeline
#906
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
gateway-see.component.ts
src/app/main/gateway-see/gateway-see.component.ts
+9
-9
sensor-detail.component.ts
src/app/main/sensor-detail/sensor-detail.component.ts
+9
-9
No files found.
src/app/main/gateway-see/gateway-see.component.ts
View file @
47c6c52f
...
@@ -56,15 +56,15 @@ export class GatewaySeeComponent implements OnInit {
...
@@ -56,15 +56,15 @@ export class GatewaySeeComponent implements OnInit {
}
}
getWayData
()
{
getWayData
()
{
this
.
isLoading
=
true
;
//
this.isLoading = true;
this
.
api
.
probes
.
getProbesByGateway
([{
deviceNo
:
this
.
deviceNo
},
(
data
)
=>
{
//
this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => {
if
(
data
&&
data
.
constructor
===
Array
)
{
//
if (data && data.constructor === Array) {
this
.
wayData
=
data
;
//
this.wayData = data;
}
else
{
//
} else {
this
.
message
.
error
(
data
&&
data
.
message
?
data
.
message
:
'获取数据失败'
);
//
this.message.error(data && data.message ? data.message : '获取数据失败');
}
//
}
this
.
isLoading
=
false
;
//
this.isLoading = false;
}]);
//
}]);
}
}
toDetail
(
one
)
{
toDetail
(
one
)
{
...
...
src/app/main/sensor-detail/sensor-detail.component.ts
View file @
47c6c52f
...
@@ -133,15 +133,15 @@ export class SensorDetailComponent implements OnInit {
...
@@ -133,15 +133,15 @@ export class SensorDetailComponent implements OnInit {
}
}
getProbs
()
{
getProbs
()
{
this
.
isLoading
=
true
;
//
this.isLoading = true;
this
.
api
.
probes
.
getProbesByGateway
([{
deviceNo
:
this
.
deviceNo
},
(
data
)
=>
{
//
this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => {
if
(
data
&&
data
.
constructor
===
Array
)
{
//
if (data && data.constructor === Array) {
this
.
wayData
=
data
;
//
this.wayData = data;
}
else
{
//
} else {
this
.
message
.
error
(
data
&&
data
.
message
?
data
.
message
:
'获取数据失败'
);
//
this.message.error(data && data.message ? data.message : '获取数据失败');
}
//
}
this
.
isLoading
=
false
;
//
this.isLoading = false;
}]);
//
}]);
}
}
getCurrent
()
{
getCurrent
()
{
...
...
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