Commit 704a4276 authored by van.chen's avatar van.chen

做温湿度数据异常点删除

parent 0b725332
......@@ -25,9 +25,17 @@ export class ProProfileAdvancedComponent implements OnInit {
monthlight: {};
trans = {
temp: '温度数据',
tempMin: -80,
tempMax: 150,
humid: '湿度数据',
humidMin: 0,
humidMax: 100,
tilt: '倾斜数据',
tiltMin: -180,
tiltMax: 180,
light: '摆动角度数据',
lightMin: -180,
lightMax: 180,
month: '近一月',
week: '近一周',
};
......@@ -161,8 +169,10 @@ export class ProProfileAdvancedComponent implements OnInit {
const xAxis = [];
const option = JSON.parse(JSON.stringify(this.option));
res.historyData.map((one, i) => {
if(Number(one.value) < this.trans[item + 'Max'] && Number(one.value) > this.trans[item + 'Min']) {
data.push(one.value);
xAxis.push(one.time);
}
if (i === len) {
option.series[0].data = data;
option.xAxis.data = xAxis;
......
......@@ -7,7 +7,7 @@ export const environment = {
production: false,
useHash: true,
hmr: false,
baseUrl: 'http://192.168.1.52:8092'
baseUrl: 'http://172.16.1.52:8099'
};
/*
......
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