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
512400e2
Commit
512400e2
authored
Sep 05, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 发布历史曲线
parent
fb72383e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
index.js
packages/extend-components/EC_HistoryView/src/demos/index.js
+7
-7
index.js
packages/extend-components/EC_HistoryView/src/index.js
+3
-2
index.less
packages/extend-components/EC_HistoryView/src/index.less
+2
-2
No files found.
packages/extend-components/EC_HistoryView/src/demos/index.js
View file @
512400e2
...
@@ -3,13 +3,13 @@ import HistoryView from '../index';
...
@@ -3,13 +3,13 @@ import HistoryView from '../index';
import
{
MobileHistoryChart
}
from
"../mobile"
;
import
{
MobileHistoryChart
}
from
"../mobile"
;
const
deviceParams
=
[
const
deviceParams
=
[
/*
{
{
deviceCode
:
'EGBF00000141'
,
deviceCode
:
'EGBF00000141'
,
// sensors: '进水压力,出水瞬时流量,出水累计流量',
// sensors: '进水压力,出水瞬时流量,出水累计流量',
sensors
:
'进水压力'
,
sensors
:
'进水压力'
,
deviceType
:
'二供泵房'
,
deviceType
:
'二供泵房'
,
pointAddressID
:
208
,
pointAddressID
:
208
,
},
*/
},
/* {
/* {
"deviceCode": "SYJ00000008",
"deviceCode": "SYJ00000008",
"sensors": "瞬时流量",
"sensors": "瞬时流量",
...
@@ -63,11 +63,11 @@ const deviceParams = [
...
@@ -63,11 +63,11 @@ const deviceParams = [
"sensors": "出水瞬时流量,是否在线",
"sensors": "出水瞬时流量,是否在线",
"deviceType": "水厂"
"deviceType": "水厂"
}*/
}*/
{
//
{
"deviceCode"
:
"XNCDC00000001"
,
//
"deviceCode": "XNCDC00000001",
"sensors"
:
"沉淀池1号进水管流量"
,
//
"sensors": "沉淀池1号进水管流量",
"deviceType"
:
"絮凝沉淀池"
//
"deviceType": "絮凝沉淀池"
}
//
}
];
];
const
Demo
=
()
=>
{
const
Demo
=
()
=>
{
return
(
return
(
...
...
packages/extend-components/EC_HistoryView/src/index.js
View file @
512400e2
...
@@ -1180,10 +1180,11 @@ const HistoryView = (props) => {
...
@@ -1180,10 +1180,11 @@ const HistoryView = (props) => {
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-spin`
)}
style
=
{{
position
:
"relative"
}}
>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-spin`
)}
style
=
{{
position
:
"relative"
}}
>
{
{
(
loading
||
percent
!==
0
)
?
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-progressWrapper`
)}
>
(
loading
||
percent
!==
0
)
?
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-progressWrapper`
)}
>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-header`
)}
/
>
{
/*<div className={classNames(`${prefixCls}-header`)}/>*/
}
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-contentWrapper`
)}
>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-contentWrapper`
)}
>
{
console
.
log
(
dateRange
)}
{
{
lineDataType
===
'原始曲线'
?
<><
Progress
percent
=
{
percent
}
lineDataType
===
'原始曲线'
||
lineDataType
===
'特征曲线'
&&
moment
(
dateRange
?.[
0
]?.
dateTo
).
diff
(
moment
(
dateRange
?.[
0
]?.
dateFrom
),
'days'
)
>=
30
?
<><
Progress
percent
=
{
percent
}
steps
=
{
20
}
steps
=
{
20
}
className
=
{
classNames
(
`
${
prefixCls
}
-progress`
,
`
${
prefixCls
}
-blink-2`
)}
className
=
{
classNames
(
`
${
prefixCls
}
-progress`
,
`
${
prefixCls
}
-blink-2`
)}
showInfo
=
{
false
}
/
>
showInfo
=
{
false
}
/
>
...
...
packages/extend-components/EC_HistoryView/src/index.less
View file @
512400e2
...
@@ -248,8 +248,8 @@
...
@@ -248,8 +248,8 @@
}
}
.@{history-view}-blink-2 {
.@{history-view}-blink-2 {
-webkit-animation: blink-2
5
s infinite both;
-webkit-animation: blink-2
3
s infinite both;
animation: blink-2
5
s infinite both;
animation: blink-2
3
s infinite both;
}
}
/**
/**
...
...
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