Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
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
ReactWeb5
wisdom-components
Commits
d3715ec5
Commit
d3715ec5
authored
Aug 25, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复
parent
66abfc1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
index.js
packages/extend-components/EC_HistoryView/src/demos/index.js
+4
-4
utils.js
packages/extend-components/EC_HistoryView/src/utils.js
+1
-1
No files found.
packages/extend-components/EC_HistoryView/src/demos/index.js
View file @
d3715ec5
...
...
@@ -44,10 +44,10 @@ const deviceParams = [
}*/
// 邳州张楼水厂
{
"deviceCode"
:
"
JFJ00000001
"
,
"sensors"
:
"
2号溶液池液位
"
,
"deviceType"
:
"
加矾间
"
}
,
"deviceCode"
:
"
SC00000023
"
,
"sensors"
:
"
出水压力
"
,
"deviceType"
:
"
水厂
"
}
/*
{
"deviceCode": "JFJ00000001",
...
...
packages/extend-components/EC_HistoryView/src/utils.js
View file @
d3715ec5
...
...
@@ -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
)
=>
{
...
...
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