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": "DYSC00000001",
        "sensors": "出水压力,出水瞬时流量,今日供水量,出厂水浊度",
        // "sensors": "出水压力,出水瞬时流量",
        "deviceType": "大邑生产数据"
    },
    {
        "deviceCode": "DYSC00000006",
        "sensors": "出水压力,出水瞬时流量,今日供水量,出厂水浊度",
        "deviceType": "大邑生产数据"
    },
    {
        "deviceCode": "DYSC00000007",
        "sensors": "出水压力,出水瞬时流量,今日供水量,出厂水浊度",
        "deviceType": "大邑生产数据"
    }*/
    {
        "deviceCode": "NT00000001",
        "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']}/>*/}
            <HistoryView deviceParams={deviceParams} grid />
        </div>
    </div>;
};

export default Demo;
