From 3282e95db0207ee133d1e98d9771dec9d83b0fc4 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 02 四月 2026 16:24:38 +0800
Subject: [PATCH] 2026.4.2 新增专题管理功能
---
pages/inspection/scene/info/index.js | 60 ++++++++++++++++++------------------------------------------
1 files changed, 18 insertions(+), 42 deletions(-)
diff --git a/pages/inspection/scene/info/index.js b/pages/inspection/scene/info/index.js
index 9ec8700..14a9796 100644
--- a/pages/inspection/scene/info/index.js
+++ b/pages/inspection/scene/info/index.js
@@ -1,55 +1,31 @@
-// pages/inspection/scene/info/index.js
-Page({
- /**
- * 椤甸潰鐨勫垵濮嬫暟鎹�
- */
- data: {},
+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();
}
});
},
- /**
- * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
- */
- onReady() {},
-
- /**
- * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
- */
- onShow() {},
-
- /**
- * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌
- */
- onHide() {},
-
- /**
- * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇
- */
- onUnload() {},
-
- /**
- * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔
- */
- onPullDownRefresh() {},
-
- /**
- * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁�
- */
onReachBottom() {},
-
- /**
- * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
- */
- onShareAppMessage() {},
});
--
Gitblit v1.9.3