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
1389ec33
Commit
1389ec33
authored
Aug 14, 2024
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改历史曲线多图表统计曲线逻辑错误
parent
ab1b69b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
package.json
packages/extend-components/EC_HistoryView/package.json
+1
-1
GridChart.js
packages/extend-components/EC_HistoryView/src/GridChart.js
+4
-0
No files found.
packages/extend-components/EC_HistoryView/package.json
View file @
1389ec33
{
"name"
:
"@wisdom-components/ec_historyview"
,
"version"
:
"1.
68.1
"
,
"version"
:
"1.
8.0
"
,
"description"
:
"> TODO: description"
,
"author"
:
"cuijiahao <15927252954@163.com>"
,
"homepage"
:
""
,
...
...
packages/extend-components/EC_HistoryView/src/GridChart.js
View file @
1389ec33
...
...
@@ -128,10 +128,13 @@ const GridChart = memo((props) => {
});
// 请求统计数据时,需要使用实际点去获取
_params
.
nameTypeList
.
forEach
(
sensor
=>
{
if
(
_realSensors
[
sensor
.
name
])
{
sensor
.
name
=
_realSensors
[
sensor
.
name
]
}
});
// 获取数据后,将原始数据中的dataModel这部分替换掉
((
await
getStatisticsInfo
(
_params
))?.
data
?.
list
?.[
0
].
dNameDataList
??
[])?.
forEach
(
obj
=>
{
if
(
_realSensorsMap
[
obj
.
dName
])
{
let
_v
=
_tempValue
[
`needToReplace_
${
item
.
code
}
_
${
_realSensorsMap
[
obj
.
dName
]}
`
];
_v
.
dataModel
=
obj
.
nameDate
.
map
(
d
=>
{
return
{
...
...
@@ -141,6 +144,7 @@ const GridChart = memo((props) => {
}
});
_finalData
[
`needToReplace_
${
item
.
code
}
_
${
_realSensorsMap
[
obj
.
dName
]}
`
]
=
_v
;
}
});
// 替换数据
_dataSource
.
forEach
((
d
,
index
)
=>
{
...
...
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