riku
2026-01-16 1f9e43b7bbb848c7ee2aaa89ffece17002b2c915
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
26
27
28
29
30
31
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() {},
});