indexForStatus.js 587 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import React from 'react';
import HistoryView from '../index';

const deviceParams2 = [
    {
        "deviceCode": "EGJZ00000319",
        // "sensors": "进水压力,出水压力,泵1状态",
        // "sensors": "进水压力",
        "sensors": "泵1状态",
        "deviceType": "二供机组"
    }
]
const Demo = () => {
    return (
        <>
            <div>
                <div style={{height: 700}}>
                    <HistoryView deviceParams={deviceParams2} defaultModel="curve"/>
                </div>
            </div>
        </>
    );
};

export default Demo;