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
d2a8be44
Commit
d2a8be44
authored
Aug 22, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改
parent
3d74dcb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
RealModel.js
...s/extend-components/EC_ConfigurationView/src/RealModel.js
+1
-1
index.js
.../extend-components/EC_StatisticalHistoryView/src/index.js
+4
-3
No files found.
packages/extend-components/EC_ConfigurationView/src/RealModel.js
View file @
d2a8be44
...
...
@@ -3051,7 +3051,7 @@ const ConfigurationView = (props) => {
onOk={() => setIsHIModalVisible(false)}
onCancel={() => setIsHIModalVisible(false)}
getContainer={ConfigurationRef.current}
title={historyInfoParams.length ? historyInfoParams[0].sensors || '' : ''}
//
title={historyInfoParams.length ? historyInfoParams[0].sensors || '' : ''}
wrapClassName={classNames(`
$
{
prefixCls
}
-
historyInfoModal
`)}
>
<HistoryView deviceParams={historyInfoParams} />
...
...
packages/extend-components/EC_StatisticalHistoryView/src/index.js
View file @
d2a8be44
...
...
@@ -12,7 +12,7 @@ import './index.less';
const
StatisticalHistoryView
=
(
props
)
=>
{
const
{
getPrefixCls
}
=
useContext
(
ConfigProvider
.
ConfigContext
);
const
prefixCls
=
getPrefixCls
(
'ec-statistical-history-view'
);
const
c
omponentPrefix
=
getPrefixCls
(
''
);
const
c
hartRef
=
useRef
(
null
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
historyRender
,
setHistoryRender
]
=
useState
(
true
);
...
...
@@ -32,6 +32,7 @@ const StatisticalHistoryView = (props) => {
const
[
picker
,
setPicker
]
=
useState
(
'day'
);
const
[
time
,
setTime
]
=
useState
({
startTime
:
''
,
endTime
:
''
});
const
[
dateTime
,
setDateTime
]
=
useState
(
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
));
const
[
hoverIndex
,
setHoverIndex
]
=
useState
(
null
);
// 时间切换筛选
const
onTimeChange
=
(
e
)
=>
{
...
...
@@ -200,7 +201,7 @@ const StatisticalHistoryView = (props) => {
},
grid
:
{
containLabel
:
true
,
left
:
1
0
,
left
:
2
0
,
right
:
10
,
// top: 20,
bottom
:
10
,
...
...
@@ -355,7 +356,7 @@ const StatisticalHistoryView = (props) => {
{
<>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-chart`
)}
>
<
BasicChart
option
=
{
options
}
notMerge
style
=
{{
width
:
'100%'
,
height
:
'100%'
}}
/
>
<
BasicChart
ref
=
{
chartRef
}
option
=
{
options
}
notMerge
style
=
{{
width
:
'100%'
,
height
:
'100%'
}}
/
>
<
/div
>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-table`
)}
>
<
BasicTable
...
...
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