From 5036880fc037e5d112206b93a729f60be12bf8ab Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 07 十一月 2024 17:03:13 +0800 Subject: [PATCH] 2024.11.07 bug修复 --- pages/inspection/scene/info/index.js | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/pages/inspection/scene/info/index.js b/pages/inspection/scene/info/index.js index 1df3502..b80d78d 100644 --- a/pages/inspection/scene/info/index.js +++ b/pages/inspection/scene/info/index.js @@ -1,9 +1,17 @@ -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 => { @@ -11,6 +19,9 @@ this.setData({ scene: data.scene, }); + [0, 1, 2].forEach(e => { + this.fetchDeviceInfo(e); + }); } }); }, -- Gitblit v1.9.3