Riku
2024-08-13 cf693a5227f17bbf2201512128d267281a8c5695
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
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);
        });
      }
    });
  },
 
  onReachBottom() {},
});