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
f23d3a78
Commit
f23d3a78
authored
Nov 26, 2024
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化历史曲线时间选择器;优化数据加载
parent
a383e3fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
17 deletions
+43
-17
EC_HistoryView.md
...es/extend-components/EC_HistoryView/src/EC_HistoryView.md
+16
-3
SingleChart.js
packages/extend-components/EC_HistoryView/src/SingleChart.js
+0
-0
index.js
packages/extend-components/EC_HistoryView/src/apis/index.js
+14
-1
GridDemo.js
...es/extend-components/EC_HistoryView/src/demos/GridDemo.js
+3
-8
index.js
packages/extend-components/EC_HistoryView/src/demos/index.js
+10
-5
index.js
packages/extend-components/EC_HistoryView/src/index.js
+0
-0
No files found.
packages/extend-components/EC_HistoryView/src/EC_HistoryView.md
View file @
f23d3a78
...
...
@@ -26,16 +26,16 @@ path: /
## 单图表-状态
<code
src=
"./demos/indexForStatus.js"
></code>
[
//
]:
#
(<code src="./demos/indexForStatus.js"></code>)
## 单图表-频率
<code
src=
"./demos/indexForFrequency.js"
></code>
[
//
]:
#
(<code src="./demos/indexForFrequency.js"></code>)
[
//
]:
#
'## 移动端'
[
//
]:
#
'<code src="./demos/mobile.js"></code>'
## 多图表
[
//
]:
#
(## 多图表)
[
//
]:
#
(<code src="./demos/GridDemo.js"></code>)
...
...
@@ -52,6 +52,19 @@ path: /
| deviceParams | 设备参数信息 | array | - | - |
| needMarkLine | 是否添加报警标识线 | boolean | true | |
## 字典配置
```
text
数据字典中,根据需要配置以下条目
组件_ec_historyview
- 曲线居中 true/false
- 数据滤波 true/false
- 日期模式 常规模式/简易模式
- 离散算法设备类型 水厂,二供泵房
曲线居中、数据滤波,默认是否勾选;
日期模式下,常规模式时间格式为 YYYY-MM-DD HH:mm,简易模式时间格式为YYYY-MM-DD;
离散算法设备类型,适用于数据起伏较大的设备类型,根据实际场景,配置设备类型即可
```
### deviceParams
```
javascript
...
...
packages/extend-components/EC_HistoryView/src/SingleChart.js
View file @
f23d3a78
This diff is collapsed.
Click to expand it.
packages/extend-components/EC_HistoryView/src/apis/index.js
View file @
f23d3a78
...
...
@@ -59,7 +59,20 @@ export function getDictionaryInfoAll(params) {
params
})
}
export
function
searchDataDictionaryList
(
params
)
{
return
request
({
url
:
`
${
baseUrl
}
/PandaOMS/OMS/DataManger/SearchDataDictionaryList`
,
method
:
REQUEST_METHOD_GET
,
params
})
}
export
function
getDataDictionaryList
(
params
)
{
return
request
({
url
:
`
${
baseUrl
}
/PandaOMS/OMS/DataManger/GetDataDictionaryList`
,
method
:
REQUEST_METHOD_GET
,
params
})
}
export
function
getSensorType
()
{
return
request
({
url
:
`
${
baseUrl
}
/PandaMonitor/Monitor/Sensor/GetSensorType`
,
...
...
packages/extend-components/EC_HistoryView/src/demos/GridDemo.js
View file @
f23d3a78
...
...
@@ -95,14 +95,9 @@ import HistoryView from '../index';
];*/
const
deviceParams
=
[
{
"deviceCode"
:
"EGJZ00000002"
,
"sensors"
:
"出水实际压力,1#水箱液位"
,
"deviceType"
:
"二供机组"
},
{
"deviceCode"
:
"EGBF00000004"
,
"sensors"
:
"今日用电量,今日供水量"
,
"deviceType"
:
"二供泵房"
"deviceCode"
:
"SZJCY00000001"
,
"sensors"
:
"温度,压力,浊度,二氧化氯"
,
"deviceType"
:
"水质监测仪"
}
]
const
Demo
=
()
=>
{
...
...
packages/extend-components/EC_HistoryView/src/demos/index.js
View file @
f23d3a78
...
...
@@ -2,10 +2,15 @@ import React from 'react';
import
HistoryView
from
'../index'
;
const
deviceParams
=
[
/* {
"deviceCode": "EGBF00000022",
"sensors": "出水瞬时流量,今日用电量,余氯",
"deviceType": "二供泵房"
}*/
{
"deviceCode"
:
"
EGBF00000022
"
,
"sensors"
:
"
出水瞬时流量,今日用电量,余氯
"
,
"deviceType"
:
"
二供泵房
"
"deviceCode"
:
"
SZJCY00000006
"
,
"sensors"
:
"
浊度
"
,
"deviceType"
:
"
水质监测仪
"
}
]
const
Demo
=
()
=>
{
...
...
@@ -13,8 +18,8 @@ const Demo = () => {
<>
<
div
>
<
div
style
=
{{
height
:
700
}}
>
{
/*<HistoryView deviceParams={deviceParams} defaultModel="curve" />*/
}
<
HistoryView
theme
=
{
'BI'
}
deviceParams
=
{
deviceParams
}
defaultModel
=
"curve"
/>
<
HistoryView
deviceParams
=
{
deviceParams
}
defaultModel
=
"curve"
/>
{
/*<HistoryView theme={'BI'} deviceParams={deviceParams} defaultModel="curve"/>*/
}
<
/div
>
<
/div
>
<
/
>
...
...
packages/extend-components/EC_HistoryView/src/index.js
View file @
f23d3a78
This diff is collapsed.
Click to expand it.
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