GridDemo.js 1.5 KB
Newer Older
1 2 3
import React from 'react';
import HistoryView from '../index';

4
const deviceParams = [
5
  {
6
    deviceCode: 'EGBF00000136',
7 8
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
9
    pointAddressID: 4,
10 11
  },
  {
12
    deviceCode: 'EGBF00000137',
13 14
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
15
    pointAddressID: 4,
16 17
  },
  {
陈龙's avatar
陈龙 committed
18
    // deviceCode: 'EGBF00000002',
19
    deviceCode: 'EGBF00000135',
20 21
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
22
    pointAddressID: 4,
23
  },
24
];
陈龙's avatar
陈龙 committed
25
/*const deviceParams = [
陈龙's avatar
陈龙 committed
26 27
  {
    "deviceCode": "LLJ00000055",
28
    "sensors": "瞬时流量,正累计流量",
陈龙's avatar
陈龙 committed
29 30 31 32
    "deviceType": "流量计"
  },
  {
    "deviceCode": "LLJ00000056",
33
    "sensors": "瞬时流量,正累计流量",
陈龙's avatar
陈龙 committed
34 35
    "deviceType": "流量计"
  }
陈龙's avatar
陈龙 committed
36
]*/
37
/*const deviceParams = [
38 39
  {
    "deviceCode": "EGBF00000023",
40
    "sensors": "出水瞬时流量",
41 42 43 44
    "deviceType": "二供泵房"
  },
  {
    "deviceCode": "EGBF00000019",
45
    "sensors": "出水瞬时流量",
46 47
    "deviceType": "二供泵房"
  }
48 49 50 51
]*/
/*const deviceParams = [
  {
    "deviceCode": "QSSSC00000001",
52
    "sensors": "出水瞬时流量",
53 54 55 56
    "deviceType": "确山送水厂"
  },
  {
    "deviceCode": "EGBF00000019",
57
    "sensors": "出水瞬时流量",
58 59 60
    "deviceType": "二供泵房"
  }
]*/
61
const Demo = () => {
陈龙's avatar
陈龙 committed
62 63 64
  return <div style={{ height: 700 }}>
    <HistoryView deviceParams={deviceParams} grid />
  </div>;
65 66 67
};

export default Demo;