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
830209f7
Commit
830209f7
authored
Aug 22, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复NaN报错
parent
ae30b872
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
index.js
packages/extend-components/EC_HistoryView/src/demos/index.js
+6
-6
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 @
830209f7
...
...
@@ -10,11 +10,11 @@ const deviceParams = [
deviceType: '二供泵房',
pointAddressID: 208,
},*/
{
/*
{
"deviceCode": "SYJ00000008",
"sensors": "瞬时流量",
"deviceType": "水源井"
},
},
*/
/* {
// deviceCode: 'EGBF00000002',
// deviceCode: 'EGBF00000018',
...
...
@@ -43,11 +43,11 @@ const deviceParams = [
"deviceType": "二供机组"
}*/
// 邳州张楼水厂
/*
{
"deviceCode": "LLJ0000000
4
",
"sensors": "
瞬时
流量",
{
"deviceCode"
:
"LLJ0000000
1
"
,
"sensors"
:
"
出水累计
流量"
,
"deviceType"
:
"流量计"
}
*/
}
/* {
"deviceCode": "JFJ00000001",
"sensors": "沉淀池投矾量瞬时,是否在线",
...
...
packages/extend-components/EC_HistoryView/src/utils.js
View file @
830209f7
...
...
@@ -569,7 +569,7 @@ const assignOptions = (restOption, xAxis, legendData, chartType) => {
const returnMaxOrMinNumber = (dataSource, type) => {
let _obj = null;
dataSource?.[0]?.dataModel.forEach(item => {
dataSource?.[0]?.dataModel.f
ilter(item => item.pv !== null).f
orEach(item => {
if (!_obj) {
_obj = item;
} else {
...
...
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