Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
towerFront
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
towerFront
Commits
704a4276
Commit
704a4276
authored
Feb 18, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
做温湿度数据异常点删除
parent
0b725332
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
advanced.component.ts
src/app/routes/pro/profile/advanced/advanced.component.ts
+12
-2
environment.ts
src/environments/environment.ts
+1
-1
No files found.
src/app/routes/pro/profile/advanced/advanced.component.ts
View file @
704a4276
...
@@ -25,9 +25,17 @@ export class ProProfileAdvancedComponent implements OnInit {
...
@@ -25,9 +25,17 @@ export class ProProfileAdvancedComponent implements OnInit {
monthlight
:
{};
monthlight
:
{};
trans
=
{
trans
=
{
temp
:
'温度数据'
,
temp
:
'温度数据'
,
tempMin
:
-
80
,
tempMax
:
150
,
humid
:
'湿度数据'
,
humid
:
'湿度数据'
,
humidMin
:
0
,
humidMax
:
100
,
tilt
:
'倾斜数据'
,
tilt
:
'倾斜数据'
,
tiltMin
:
-
180
,
tiltMax
:
180
,
light
:
'摆动角度数据'
,
light
:
'摆动角度数据'
,
lightMin
:
-
180
,
lightMax
:
180
,
month
:
'近一月'
,
month
:
'近一月'
,
week
:
'近一周'
,
week
:
'近一周'
,
};
};
...
@@ -161,8 +169,10 @@ export class ProProfileAdvancedComponent implements OnInit {
...
@@ -161,8 +169,10 @@ export class ProProfileAdvancedComponent implements OnInit {
const
xAxis
=
[];
const
xAxis
=
[];
const
option
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
option
));
const
option
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
option
));
res
.
historyData
.
map
((
one
,
i
)
=>
{
res
.
historyData
.
map
((
one
,
i
)
=>
{
data
.
push
(
one
.
value
);
if
(
Number
(
one
.
value
)
<
this
.
trans
[
item
+
'Max'
]
&&
Number
(
one
.
value
)
>
this
.
trans
[
item
+
'Min'
])
{
xAxis
.
push
(
one
.
time
);
data
.
push
(
one
.
value
);
xAxis
.
push
(
one
.
time
);
}
if
(
i
===
len
)
{
if
(
i
===
len
)
{
option
.
series
[
0
].
data
=
data
;
option
.
series
[
0
].
data
=
data
;
option
.
xAxis
.
data
=
xAxis
;
option
.
xAxis
.
data
=
xAxis
;
...
...
src/environments/environment.ts
View file @
704a4276
...
@@ -7,7 +7,7 @@ export const environment = {
...
@@ -7,7 +7,7 @@ export const environment = {
production
:
false
,
production
:
false
,
useHash
:
true
,
useHash
:
true
,
hmr
:
false
,
hmr
:
false
,
baseUrl
:
'http://1
92.168.1.52:8092
'
baseUrl
:
'http://1
72.16.1.52:8099
'
};
};
/*
/*
...
...
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