From f46786f11c5c08ead7501a82e5a71430ad69b782 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期日, 27 四月 2025 17:39:24 +0800
Subject: [PATCH] 修复线索问题定位错误问题
---
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