riku
2026-04-02 3282e95db0207ee133d1e98d9771dec9d83b0fc4
pages/inspection/scene/info/index.js
@@ -1,17 +1,16 @@
import { useDeviceList } from './devicelist-proxy.js';
import { useDeviceLocation } from './device-location-proxy.js';
Page({
  behaviors: [useDeviceList, useDeviceLocation],
  behaviors: [useDeviceList],
  data: {
    // 场景基本信息
    sceneInfo:{},
    // 监测设备信息
    monitorDevices:[],
    // 治理设备信息
    treatmentDevices:[],
    // 生产设备信息
    productionDevices:[],
    scene:{},
    // // 监测设备信息
    // monitorDevices:[],
    // // 治理设备信息
    // treatmentDevices:[],
    // // 生产设备信息
    // productionDevices:[],
  },
  onLoad(options) {
@@ -20,6 +19,10 @@
        this.setData({
          scene: data.scene,
        });
        // [0, 1, 2].forEach(e => {
        //   this.fetchDeviceInfo(e);
        // });
        this.fetchAllDeviceInfo();
      }
    });
  },