9.17张祥瑞

This commit is contained in:
张祥瑞 2025-09-17 10:39:59 +08:00
parent 3d088049ae
commit bec69289ac
2 changed files with 14 additions and 22 deletions

View File

@ -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',

View File

@ -13,30 +13,11 @@
<text class="info-value">{{ room.ssbmname }}</text>
</view>
</view>
<!-- 补位元素确保网格始终保持两列布局 -->
<view v-if="floor.rooms.length % 2 !== 0" class="room-placeholder"></view>
</view>
</view>
</view>
<!-- <view class="connection-section">
<button v-if="!connected" @click="connectWebSocket" class="connect-btn">
连接WebSocket
</button>
<button @click="disconnectWebSocket" class="disconnect-btn">
断开连接
</button>
<text :class="['status', connected ? 'connected' : 'disconnected']">
{{ connectionStatus }}
</text>
</view>
<view class="message-container">
<text class="subtitle">消息记录</text>
<scroll-view scroll-y="true" class="message-list">
<view v-for="(item, index) in messages" :key="index" :class="['message-item', item.type]">
<text class="message-content">{{ item.content }}</text>
</view>
</scroll-view>
</view> -->
</view>
</template>
@ -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,