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

陈龙's avatar
陈龙 committed
4
const deviceParams = [
5 6 7 8
  {
    deviceCode: 'EGBF00000146',
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
9
    pointAddressID: 4,
10 11
  },
  {
12 13 14
    deviceCode: 'EGBF00000001',
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
15
    pointAddressID: 4,
16 17
  },
  {
陈龙's avatar
陈龙 committed
18 19
    // deviceCode: 'EGBF00000002',
    deviceCode: 'EGBF00000082',
20 21
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
22
    pointAddressID: 4,
23
  },
陈龙's avatar
陈龙 committed
24 25
];
/*const deviceParams = [
陈龙's avatar
陈龙 committed
26 27 28 29 30 31 32 33 34 35
  {
    "deviceCode": "LLJ00000055",
    "sensors": "瞬时流量,正累计流量,是否在线",
    "deviceType": "流量计"
  },
  {
    "deviceCode": "LLJ00000056",
    "sensors": "瞬时流量,正累计流量,是否在线",
    "deviceType": "流量计"
  }
陈龙's avatar
陈龙 committed
36
]*/
37
const Demo = () => {
陈龙's avatar
陈龙 committed
38 39 40
  return <div style={{ height: 700 }}>
    <HistoryView deviceParams={deviceParams} grid />
  </div>;
41 42 43
};

export default Demo;