Commit d3715ec5 authored by 陈龙's avatar 陈龙

fix: 修复

parent 66abfc1b
......@@ -44,10 +44,10 @@ const deviceParams = [
}*/
// 邳州张楼水厂
{
"deviceCode": "JFJ00000001",
"sensors": "2号溶液池液位",
"deviceType": "加矾间"
},
"deviceCode": "SC00000023",
"sensors": "出水压力",
"deviceType": "水厂"
}
/*
{
"deviceCode": "JFJ00000001",
......
......@@ -92,7 +92,7 @@ const nameFormatter = (data, contrast, contrastOption, nameWithSensor) => {
*/
const dataAccessor = (data, contrast, contrastOption) => {
const dataModel = data?.dataModel ?? [];
const formatStr = contrastOption === 'day' ? '2020-01-01 HH:mm:00' : '2020-01-DD HH:mm:00';
const formatStr = contrastOption === 'day' ? '2020-01-01 HH:mm:ss' : '2020-01-DD HH:mm:ss';
return dataModel
.filter((item) => item.sensorName !== '是否在线')
.map((item) => {
......
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