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
8a303da5
Commit
8a303da5
authored
Sep 19, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 升级历史曲线
parent
82a9265e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
63 deletions
+68
-63
Basic.tsx
packages/base-components/BasicChart/src/demos/Basic.tsx
+1
-1
legend.js
packages/base-components/BasicChart/src/utils/legend.js
+1
-1
EC_HistoryView.md
...es/extend-components/EC_HistoryView/src/EC_HistoryView.md
+1
-1
SingleChart.js
packages/extend-components/EC_HistoryView/src/SingleChart.js
+0
-1
index.js
packages/extend-components/EC_HistoryView/src/demos/index.js
+65
-59
index.js
packages/extend-components/EC_HistoryView/src/index.js
+0
-0
utils.js
packages/extend-components/EC_HistoryView/src/utils.js
+0
-0
No files found.
packages/base-components/BasicChart/src/demos/Basic.tsx
View file @
8a303da5
...
...
@@ -16,7 +16,7 @@ const Demo = () => {
},
},
grid
:
{
right
:
'
2
0%'
,
right
:
'
1
0%'
,
},
toolbox
:
{
feature
:
{
...
...
packages/base-components/BasicChart/src/utils/legend.js
View file @
8a303da5
...
...
@@ -18,7 +18,7 @@ export const buildDefaultLegend = (option) => {
textStyle
:
{
padding
:
[
0
,
0
,
0
,
4
],
color
:
'#2d2d2d'
,
width
:
8
0
,
width
:
12
0
,
overflow
:
'truncate'
},
tooltip
:{
...
...
packages/extend-components/EC_HistoryView/src/EC_HistoryView.md
View file @
8a303da5
...
...
@@ -30,7 +30,7 @@ path: /
## 多图表
<
code
src=
"./demos/GridDemo.js"
></code
>
<
!-- <code src="./demos/GridDemo.js"></code>
--
>
## API
...
...
packages/extend-components/EC_HistoryView/src/SingleChart.js
View file @
8a303da5
...
...
@@ -29,7 +29,6 @@ const SingleChart = memo((props) => {
showMarkLine
:
true
,
showPoint
:
true
,
chartType
,
// justLine,
showBoxOption
,
special
};
...
...
packages/extend-components/EC_HistoryView/src/demos/index.js
View file @
8a303da5
...
...
@@ -4,26 +4,32 @@ import { MobileHistoryChart } from "../mobile";
const
deviceParams
=
[
/*10.182*/
/* {
deviceCode: 'EGBF00000141',
// sensors: '进水压力,出水瞬时流量,出水累计流量',
sensors: '进水压力',
deviceType: '熊猫二供泵房',
pointAddressID: 208,
},*/
/* {
"deviceCode": "SYJ00000008",
"sensors": "瞬时流量",
"deviceType": "水源井"
},*/
{
deviceCode
:
'EGJZ00000197'
,
sensors
:
'进水压力,出水压力,出水瞬时流量,出水累计流量'
,
// sensors: '1#变频器运行频率',
deviceType
:
'二供机组'
,
// pointAddressID: 208,
}
/* {
deviceCode: 'EGBF00000141',
// sensors: '进水压力,出水瞬时流量,出水累计流量',
sensors: '进水压力',
deviceType: '熊猫二供泵房',
pointAddressID: 208,
}, */
/* {
"deviceCode": "SYJ00000008",
"sensors": "瞬时流量",
"deviceType": "水源井"
},
{
deviceCode: 'EGJZ00000197',
sensors: '进水压力,出水压力,出水瞬时流量,出水累计流量',
// sensors: '1#变频器运行频率',
deviceType: '二供机组',
// pointAddressID: 208,
}, */
/* {
deviceCode: 'EGJZ00000198',
sensors: '进水压力,出水压力,出水瞬时流量,出水累计流量',
// sensors: '1#变频器运行频率',
deviceType: '二供机组',
// pointAddressID: 208,
}, */
/* {
// deviceCode: 'EGBF00000002',
// deviceCode: 'EGBF00000018',
...
...
@@ -35,12 +41,12 @@ const deviceParams = [
deviceType: '熊猫压力表',
pointAddressID: 4,
},*/
/*
{
deviceCode: 'EGJZ00000226',
sensors: '出水压力',
deviceType: '二供机组',
pointAddressID: 4,
},*/
{
deviceCode
:
'EGJZ00000226'
,
sensors
:
'出水压力'
,
deviceType
:
'二供机组'
,
pointAddressID
:
4
,
},
/* {
"deviceCode": "LLJ00000055",
"sensors": "正累计流量,瞬时流量",
...
...
@@ -52,51 +58,51 @@ const deviceParams = [
"deviceType": "二供机组"
}*/
// 邳州张楼水厂
/*
{
{
"deviceCode"
:
"SC00000023"
,
"sensors"
:
"瞬时流量"
,
"deviceType"
:
"水厂"
}
*/
/*
{
"deviceCode": "JFJ00000001",
"sensors": "沉淀池投矾量瞬时,",
"deviceType": "加矾间"
}*/
/*
{
"deviceCode": "QSBF00000001",
"sensors": "取水浊度",
"deviceType": "取水泵房"
}*/
/*
{
"deviceCode": "SC00000023",
"sensors": "出水瞬时流量",
"deviceType": "水厂"
}*/
//
{
//
"deviceCode": "XNCDC00000001",
//
"sensors": "沉淀池1号进水管流量",
//
"deviceType": "絮凝沉淀池"
// }
/*
{
}
,
{
"deviceCode"
:
"JFJ00000001"
,
"sensors"
:
"沉淀池投矾量瞬时,"
,
"deviceType"
:
"加矾间"
},
{
"deviceCode"
:
"QSBF00000001"
,
"sensors"
:
"取水浊度"
,
"deviceType"
:
"取水泵房"
},
{
"deviceCode"
:
"SC00000023"
,
"sensors"
:
"出水瞬时流量"
,
"deviceType"
:
"水厂"
},
{
"deviceCode"
:
"XNCDC00000001"
,
"sensors"
:
"沉淀池1号进水管流量"
,
"deviceType"
:
"絮凝沉淀池"
},
{
"deviceCode"
:
"LLJ00000001"
,
"sensors"
:
"瞬时流量"
,
"deviceType"
:
"流量计"
}
*/
}
,
/*邳州*/
/*
{
{
deviceCode
:
'EGJZ00000027'
,
sensors
:
'2#变频器运行频率'
,
deviceType
:
'二供机组'
,
}
*/
}
,
/*确山*/
/*泵3状态*/
/* {
// EGJZ00000003
deviceCode: 'EGJZ00000003',
// sensors: '3#频率',
sensors: '出1累计流量',
deviceType: '二供机组',
}
*/
/* {
// EGJZ00000003
deviceCode: 'EGJZ00000003',
// sensors: '3#频率',
sensors: '出1累计流量',
deviceType: '二供机组',
}
*/
];
const
Demo
=
()
=>
{
return
(
...
...
packages/extend-components/EC_HistoryView/src/index.js
View file @
8a303da5
This diff is collapsed.
Click to expand it.
packages/extend-components/EC_HistoryView/src/utils.js
View file @
8a303da5
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