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
5907807c
Commit
5907807c
authored
Dec 12, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复频率图表的MarkArea所有的区间左侧均为0导致多层MarkArea覆盖的问题
parent
dbf08332
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
EC_HistoryView.md
...es/extend-components/EC_HistoryView/src/EC_HistoryView.md
+2
-2
index.js
packages/extend-components/EC_HistoryView/src/demos/index.js
+6
-1
indexForFrequency.js
...-components/EC_HistoryView/src/demos/indexForFrequency.js
+3
-3
utils.js
packages/extend-components/EC_HistoryView/src/utils.js
+2
-2
No files found.
packages/extend-components/EC_HistoryView/src/EC_HistoryView.md
View file @
5907807c
...
...
@@ -22,7 +22,7 @@ path: /
## 单图表
<code
src=
"./demos/index.js"
></code>
[
//
]:
#
(<code src="./demos/index.js"></code>)
## 单图表-状态
...
...
@@ -30,7 +30,7 @@ path: /
## 单图表-频率
[
//
]:
#
(<code src="./demos/indexForFrequency.js"></code>)
<code
src=
"./demos/indexForFrequency.js"
></code>
[
//
]:
#
'## 移动端'
[
//
]:
#
'<code src="./demos/mobile.js"></code>'
...
...
packages/extend-components/EC_HistoryView/src/demos/index.js
View file @
5907807c
...
...
@@ -161,10 +161,15 @@ const deviceParams = [
"deviceType": "送水泵"
}*/
/*界首*/
{
/*
{
"deviceCode": "SYJ00000022",
"sensors": "IC",
"deviceType": "水源井"
}*/
{
"deviceCode"
:
"JYJZ00000002"
,
"sensors"
:
"频率,泵1状态"
,
"deviceType"
:
"加压机组"
}
];
...
...
packages/extend-components/EC_HistoryView/src/demos/indexForFrequency.js
View file @
5907807c
...
...
@@ -3,9 +3,9 @@ import HistoryView from '../index';
const
deviceParams2
=
[
{
deviceCode
:
'EGJZ00000223'
,
sensors
:
'1#变频器运行频率'
,
deviceType
:
'二供机组'
,
"deviceCode"
:
"JYJZ00000002"
,
"sensors"
:
"频率"
,
"deviceType"
:
"加压机组"
}
]
const
Demo
=
()
=>
{
...
...
packages/extend-components/EC_HistoryView/src/utils.js
View file @
5907807c
...
...
@@ -403,7 +403,7 @@ const handleSpecial1 = (special, dataSource) => {
let _pt = moment(cur.pt).valueOf();
let _length = final.length;
if (_colorMap[_valDesc[cur.pv]]) {
if (
_length
=== 0) {
if (
index
=== 0) {
final.push({
lte: _pt,
gte: 0,
...
...
@@ -417,7 +417,7 @@ const handleSpecial1 = (special, dataSource) => {
} else {
final.push({
lte: _pt,
gte: final[_length - 1].
g
te,
gte: final[_length - 1].
l
te,
color: _colorMap[_valDesc[cur.pv]],
value: cur.pv,
text: _valDesc[cur.pv],
...
...
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