import React from 'react';
import HistoryView from '../index';

/*const deviceParams = [
  {
    deviceCode: 'EGBF00000136',
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
    pointAddressID: 4,
  },*/
/*  {
    deviceCode: 'EGBF00000137',
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
    pointAddressID: 4,
  },
  {
    // deviceCode: 'EGBF00000002',
    deviceCode: 'EGBF00000135',
    sensors: '进水压力,出水瞬时流量,出水累计流量',
    deviceType: '二供泵房',
    pointAddressID: 4,
  },*/
// ];
/*const deviceParams = [
  {
    "deviceCode": "LLJ00000055",
    "sensors": "瞬时流量,正累计流量",
    "deviceType": "流量计"
  },
  {
    "deviceCode": "LLJ00000056",
    "sensors": "瞬时流量,正累计流量",
    "deviceType": "流量计"
  }
]*/
/*const deviceParams = [
  {
    "deviceCode": "EGBF00000023",
    "sensors": "出水瞬时流量",
    "deviceType": "二供泵房"
  },
  {
    "deviceCode": "EGBF00000019",
    "sensors": "出水瞬时流量",
    "deviceType": "二供泵房"
  }
]*/
/*const deviceParams = [
  {
    "deviceCode": "QSSSC00000001",
    "sensors": "出水瞬时流量",
    "deviceType": "确山送水厂"
  },
  {
    "deviceCode": "EGBF00000019",
    "sensors": "出水瞬时流量",
    "deviceType": "二供泵房"
  }
]*/
/*const deviceParams = [
    {
        "deviceCode": "EGBF00000244",
        "sensors": "进水压力,出水瞬时流量,今日用电量",
        "deviceType": "二供泵房"
    },
    {
        "deviceCode": "EGBF00000081",
        "sensors": "进水压力,出水瞬时流量,今日用电量",
        "deviceType": "二供泵房"
    }
]*/
/*const deviceParams = [

/!*    {
        "deviceCode": "EGBF00000141",
        "sensors": "进水压力,出水瞬时流量,今日用电量",
        "deviceType": "二供泵房"
    }*!/
/!*    {
        "deviceCode": "EGBF00000244",
        "sensors": "进水压力,出水瞬时流量,今日用电量,今日供水量",
        "deviceType": "二供泵房"
    },
    {
        "deviceCode": "EGJZ00000317",
        "sensors": "进水压力,出水瞬时流量",
        "deviceType": "二供机组"
    },
    {
        "deviceCode": "EGBF00000184",
        "sensors": "进水压力,出水瞬时流量,今日用电量,今日供水量",
        "deviceType": "二供泵房"
    }*!/
];*/
const deviceParams = [
    {
        "deviceCode": "EGJZ00000318",
        "sensors": "进水压力,出水瞬时流量",
        "deviceType": "二供机组"
    },
    {
        "deviceCode": "EGBF00000184",
        "sensors": "进水压力,出水瞬时流量,今日用电量",
        "deviceType": "二供泵房"
    },
    {
        "deviceCode": "EGBF00000081",
        "sensors": "进水压力,出水瞬时流量,今日用电量",
        "deviceType": "二供泵房"
    },
    {
        "deviceCode": "EGBF00000135",
        "sensors": "进水压力,出水瞬时流量,今日用电量",
        "deviceType": "二供泵房"
    }
]
const Demo = () => {
    return <div>
        <div style={{height: 700}}>
            <HistoryView deviceParams={deviceParams} grid defaultDateRange={['2022-12-12 12:12:12','2022-12-31 23:23:23']}/>
        </div>
    </div>;
};

export default Demo;
