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
e57c5082
Commit
e57c5082
authored
Jan 09, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改组态
parent
b2c34982
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
index.js
.../extend-components/EC_ConfigurationView/src/apis/index.js
+0
-9
index.js
packages/extend-components/EC_ConfigurationView/src/index.js
+11
-2
No files found.
packages/extend-components/EC_ConfigurationView/src/apis/index.js
View file @
e57c5082
...
...
@@ -32,15 +32,6 @@ export function getPointAddress(params) {
});
}
// 获取历史数据
export
function
getHistoryInfo
(
params
)
{
return
request
({
url
:
`
${
baseURI
}
/PandaCore/GCK/Device/SensorsDataForStation`
,
method
:
REQUEST_METHOD_POST
,
data
:
params
,
});
}
// 获取数据字典
export
function
getDictionaryList
(
params
)
{
return
request
({
...
...
packages/extend-components/EC_ConfigurationView/src/index.js
View file @
e57c5082
...
...
@@ -760,11 +760,20 @@ const ConfigurationView = (props) => {
accountFieldParams
,
};
const
results
=
await
getDeviceRealInfo
(
params
);
const
realDat
e
=
results
&&
results
.
data
&&
results
.
data
.
list
?
results
.
data
.
list
:
[];
chartDataRender
(
realDate
);
const
realDat
a
=
results
&&
results
.
data
&&
results
.
data
.
list
?
results
.
data
.
list
:
[];
chartDataRender
(
flatten
(
realData
)
);
}
catch
(
err
)
{}
};
// 实时数据父子级平铺
const
flatten
=
(
arr
)
=>
{
return
[].
concat
(
...
arr
.
map
((
item
)
=>
item
.
child
?
[].
concat
(
item
,
...
flatten
(
item
.
child
))
:
[].
concat
(
item
),
),
);
};
/** ************************************图表数据处理******************************* */
const
chartDataRender
=
(
mqttData
)
=>
{
const
json
=
JSON
.
parse
(
myDiagram
.
model
.
toJson
());
...
...
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