Basic.tsx 1.44 KB
Newer Older
涂茜's avatar
涂茜 committed
1 2
import React from 'react';
import PandaConfigurationView from '../index';
李纪文's avatar
李纪文 committed
3
// import PandaConfigurationView from '../../es/index';
涂茜's avatar
涂茜 committed
4 5 6 7
const Demo = () => {
  return (
    <div style={{ width: '100%', height: '600px', background: '#242835' }}>
      <PandaConfigurationView
李纪文's avatar
李纪文 committed
8 9
        name={'水厂工艺流程段'}
        devices={'EQZT00000008,EQZT00000007,CPDA00000001,JYBZ00000003,JYBZ00000005,JYBZ00000004,SC00000003'.split(
10 11
          ',',
        )}
李纪文's avatar
李纪文 committed
12 13 14 15
        // name={'崇左丽江水厂原水泵房'}
        // devices={'EQZT00000007,CPBA00000001,CPAA00000001,EQZT00000008,CPDA00000001,CPAD00000001,LJSC00000002,EQZT00000005,EQZT00000004,EQZT00000002,EQZT00000003'.split(
        //   ',',
        // )}
16 17
        // name={'丽江水厂原水提升泵D单元'}
        // devices={'CPAA00000001, CPAD00000001, LJSC00000002'.split(',')}
李纪文's avatar
李纪文 committed
18
        // dictionaryParams={{nodeID: 149}}
19
        config={globalConfig}
李纪文's avatar
李纪文 committed
20
        deviceName={['工艺流程1', '工艺流程2', '工艺流程3']}
21
        // isZoom={true}
李纪文's avatar
李纪文 committed
22
        // flowShow={false}
涂茜's avatar
涂茜 committed
23 24 25 26 27 28 29 30 31
      />
    </div>
  );
};

export default Demo;

const globalConfig = {
  token: 'a1372ef0ce7b4e4884d31cfd99fe92f6',
32
  mqtt_iotIP: 'emqttd10.panda-water.cn:443',
涂茜's avatar
涂茜 committed
33
  mqtt_path: '/mqtt',
34 35
  mqtt_IsSSL: true,
  mqtt_site_code: 'site_dc8302ni',
涂茜's avatar
涂茜 committed
36 37
  mqtt_mess: {
    MessageLevel: '1.0',
38 39 40 41 42 43 44
    TcpIP: 'emqttd10.panda-water.cn',
    TcpPort: 443,
    site_code: 'site_dc8302ni',
  },
  userInfo: {
    LocalSite: 'site_dc8302ni',
    site: '',
涂茜's avatar
涂茜 committed
45 46
  },
};