| | |
| | | import { useDeviceInfo } from './deviceinfo-proxy.js'; |
| | | import { useDeviceLocation } from './device-location-proxy.js'; |
| | | import { useDeviceList } from './devicelist-proxy.js'; |
| | | |
| | | Page({ |
| | | behaviors: [useDeviceInfo, useDeviceLocation], |
| | | data: {}, |
| | | behaviors: [useDeviceList], |
| | | data: { |
| | | // 场景基本信息 |
| | | scene:{}, |
| | | // 监测设备信息 |
| | | monitorDevices:[], |
| | | // 治理设备信息 |
| | | treatmentDevices:[], |
| | | // 生产设备信息 |
| | | productionDevices:[], |
| | | }, |
| | | |
| | | onLoad(options) { |
| | | this.getOpenerEventChannel().on('acceptSceneData', data => { |
| | |
| | | this.setData({ |
| | | scene: data.scene, |
| | | }); |
| | | [0, 1, 2].forEach(e => { |
| | | this.fetchDeviceInfo(e); |
| | | }); |
| | | } |
| | | }); |
| | | }, |