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
4e9259c1
Commit
4e9259c1
authored
Sep 12, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复历史曲线多设备部显示x轴坐标的问题;调整历史曲线的宽度
parent
a998f4be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
index.less
packages/base-components/AlarmScrollAssembly/src/index.less
+2
-7
GridChart.js
packages/extend-components/EC_HistoryView/src/GridChart.js
+3
-1
utils.js
packages/extend-components/EC_HistoryView/src/utils.js
+9
-1
No files found.
packages/base-components/AlarmScrollAssembly/src/index.less
View file @
4e9259c1
...
...
@@ -32,7 +32,7 @@
}
.swiper-wrapper {
width: calc(100% -
14
0px);
width: calc(100% -
2
0px);
}
.swiper-slide {
...
...
@@ -70,7 +70,7 @@
}
.swiper-wrapper {
width: calc(100% -
14
0px);
width: calc(100% -
2
0px);
}
.swiper-slide {
...
...
@@ -88,7 +88,6 @@
width: 100%;
min-width: 400px;
height: 42px;
//overflow-y: scroll;
.warningWrapper {
display: flex;
...
...
@@ -138,9 +137,6 @@
.location {
display: inline-block;
//flex: 230;
//width: 230px;
//min-width: 100px;
flex: 1;
align-items: center;
margin-left: 14px;
...
...
@@ -184,7 +180,6 @@
flex: 2;
margin-left: 14px;
overflow: hidden;
//width: 290px;
color: #ff2929;
white-space: nowrap;
text-overflow: ellipsis;
...
...
packages/extend-components/EC_HistoryView/src/GridChart.js
View file @
4e9259c1
...
...
@@ -45,7 +45,7 @@ const GridChart = memo((props) => {
},
[
dataSource
]);
const
options
=
useMemo
(()
=>
{
return
gridData
.
map
((
item
)
=>
{
let
_options
=
gridData
.
map
((
item
)
=>
{
const
{
key
,
list
,
equipmentName
,
sensorName
,
stationCode
,
unit
}
=
item
;
const
cusOption
=
{
title
:
{
...
...
@@ -77,6 +77,8 @@ const GridChart = memo((props) => {
option
:
option
,
};
});
console
.
log
(
_options
);
return
_options
},
[
gridData
,
smooth
,
curveCenter
]);
return
(
...
...
packages/extend-components/EC_HistoryView/src/utils.js
View file @
4e9259c1
...
...
@@ -457,7 +457,15 @@ const returnXAxis = ({
return {
xAxis: {
type: 'time', min, max, axisLabel: {
formatter: contrast ? (contrastOption === 'month' ? '{dd}日' : '{HH}:{mm}') : ''
formatter: contrast ? (contrastOption === 'month' ? '{dd}日' : '{HH}:{mm}') : {
year: '{yyyy}',
month: '{MMM}',
day: '{d}日',
hour: '{HH}:{mm}',
minute: '{HH}:{mm}',
second: '{HH}:{mm}:{ss}',
none: '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}'
}
}
}, series
};
...
...
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