From 74c0d48277525940da86d0b7385b52ef2736c64f Mon Sep 17 00:00:00 2001
From: lagos <627844378@qq.com>
Date: Wed, 17 Sep 2025 14:55:44 +0800
Subject: [PATCH] 1.ofice
---
src/api/devicecontrol/officedevice.ts | 9 +++++++
.../device-control/office/Personaldevices.vue | 27 ++++---------------
2 files changed, 14 insertions(+), 22 deletions(-)
diff --git a/src/api/devicecontrol/officedevice.ts b/src/api/devicecontrol/officedevice.ts
index a2ed01b..14d6c50 100644
--- a/src/api/devicecontrol/officedevice.ts
+++ b/src/api/devicecontrol/officedevice.ts
@@ -10,6 +10,15 @@ export function gethomelist(config : object) { // 获取房间信息
})
}
+
+export function gethomelistforApp(config : object) { // 获取房间信息
+ return http({
+ url: '/RoomOperation/RoomOperation/gethomelistforApp',
+ method: 'GET',
+ data: config
+ })
+}
+
export function testcontiont(config : object) { // 获取房间信息
return http({
url: mqtturl + '/mqttSubclient/mqttSubclient/testgetcontint',
diff --git a/src/pages-home/device-control/office/Personaldevices.vue b/src/pages-home/device-control/office/Personaldevices.vue
index 48b2747..520c629 100644
--- a/src/pages-home/device-control/office/Personaldevices.vue
+++ b/src/pages-home/device-control/office/Personaldevices.vue
@@ -13,30 +13,11 @@
{{ room.ssbmname }}
+
+
-
@@ -48,6 +29,7 @@
} from 'vue'
import {
gethomelist,
+ gethomelistforApp,
getMqttPushClient,
selectfjkzbmforfjid,
createdSwitch,
@@ -90,7 +72,8 @@
//获取房间信息
const getofficehomelist = async () => {
- await gethomelist().then((res) => {
+ //20250811,张祥瑞,修改查询接口
+ await gethomelistforApp().then((res) => {
if (res.success) {
homelist.value = res.result.map((item, index) => ({
...item,