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