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
7cd38cdd
Commit
7cd38cdd
authored
May 20, 2024
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加参数监听
parent
fab319a4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.js
packages/extend-components/EC_HistoryView/src/demos/index.js
+1
-1
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 @
7cd38cdd
...
...
@@ -3,7 +3,7 @@ import HistoryView from '../index';
const
deviceParams
=
[
{
"deviceCode"
:
"EGBF0000002
3
"
,
"deviceCode"
:
"EGBF0000002
4
"
,
"sensors"
:
"出水瞬时流量"
,
"deviceType"
:
"二供泵房"
}
...
...
packages/extend-components/EC_HistoryView/src/index.js
View file @
7cd38cdd
...
...
@@ -341,7 +341,7 @@ const HistoryView = (props) => {
_deviceParams
[
0
].
sensors
=
combineSensors
.
join
(
','
)
}
return
_deviceParams
;
},
[
combineSensors
]);
},
[
combineSensors
,
props
.
deviceParams
]);
if
(
theme
===
'Normal'
)
import
(
'./index.less'
);
if
(
theme
===
'BI'
)
import
(
'./indexForBI.less'
);
const
isBoxPlots
=
...
...
@@ -1545,7 +1545,7 @@ const HistoryView = (props) => {
setIsSingleStatusSensor
(
_isStatusSensor
);
}
// 关联指标
if
(
_res3
.
code
===
0
)
{
if
(
_res3
.
code
===
0
&&
_res3
.
data
.
jsonData
)
{
let
_jsonData
=
JSON
.
parse
(
_res3
.
data
.
jsonData
);
let
allSensors
=
_jsonData
.
find
(
item
=>
item
[
'关键指标'
]
===
sensors
)?.[
'关联指标'
]?.
split
(
','
)
??
[];
setCombineSensors
([...
new
Set
([...
allSensors
,
sensors
])]);
...
...
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