index.js 904 Bytes
Newer Older
1 2 3
import React from 'react';
import HistoryView from '../index';

4
const deviceParams = [
5 6 7 8 9 10
  // {
  //   deviceCode: 'EGBF00000146',
  //   sensors: '进水压力,出水瞬时流量,出水累计流量',
  //   deviceType: '二供泵房',
  //   pointAddressID: 4,
  // },
11
  {
12
    // deviceCode: 'EGBF00000002',
13
    // deviceCode: 'EGBF00000018',
14
    deviceCode: 'XMYL00000345',
15
    // deviceCode: 'EGBF00000014',
16
    // sensors: '今日供水量,今日用电量,1#水箱液位,是否在线',
17 18
    sensors: '进水压力',
    deviceType: '熊猫压力表',
19
    pointAddressID: 4,
20
  },
21 22 23 24 25 26
  // {
  //   deviceCode: 'EGJZ00001113',
  //   sensors: '出水压力',
  //   deviceType: '二供机组',
  //   pointAddressID: 4,
  // },
27
];
28 29
const Demo = () => {
  return (
30
    <div style={{ height: 700 }}>
31
      <HistoryView deviceParams={deviceParams} defaultModel="table" />
32 33 34 35 36
    </div>
  );
};

export default Demo;