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
41370d84
Commit
41370d84
authored
May 20, 2024
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复重复调用的问题
parent
eea073ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
index.js
packages/extend-components/EC_HistoryView/src/demos/index.js
+4
-4
index.js
packages/extend-components/EC_HistoryView/src/index.js
+2
-2
No files found.
packages/extend-components/EC_HistoryView/src/demos/index.js
View file @
41370d84
...
...
@@ -2,16 +2,16 @@ import React from 'react';
import
HistoryView
from
'../index'
;
const
deviceParams
=
[
/*
{
{
"deviceCode"
:
"EGBF00000023"
,
"sensors"
:
"出水压力"
,
"deviceType"
:
"二供泵房"
},
*/
{
},
/*
{
"deviceCode": "EGBF00000023",
"sensors": "出水瞬时流量,出水压力",
"deviceType": "二供泵房"
}
}
*/
]
const
Demo
=
()
=>
{
return
(
...
...
packages/extend-components/EC_HistoryView/src/index.js
View file @
41370d84
...
...
@@ -345,7 +345,7 @@ const HistoryView = (props) => {
_deviceParams
[
0
].
sensors
=
combineSensors
.
join
(
','
);
}
return
_deviceParams
;
},[
combineSensors
])
},[
combineSensors
,
props
.
deviceParams
])
const
isBoxPlots
=
deviceParams
?.
length
===
1
&&
deviceParams
?.[
0
]?.
sensors
?.
split
(
','
).
length
===
1
;
const
[
loading
,
setLoading
]
=
useState
(
null
);
...
...
@@ -1556,7 +1556,7 @@ const HistoryView = (props) => {
};
useEffect
(()
=>
{
getDefaultOptions
();
},
[
deviceParams
]);
},
[
props
.
deviceParams
]);
let
percentTimer
=
useRef
({
timer
:
null
,
});
...
...
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