This commit is contained in:
lagos 2025-09-17 14:55:44 +08:00
parent 5477eaebe9
commit 74c0d48277
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) { // export function testcontiont(config : object) { //
return http({ return http({
url: mqtturl + '/mqttSubclient/mqttSubclient/testgetcontint', url: mqtturl + '/mqttSubclient/mqttSubclient/testgetcontint',

View File

@ -13,30 +13,11 @@
<text class="info-value">{{ room.ssbmname }}</text> <text class="info-value">{{ room.ssbmname }}</text>
</view> </view>
</view> </view>
<!-- 补位元素确保网格始终保持两列布局 -->
<view v-if="floor.rooms.length % 2 !== 0" class="room-placeholder"></view>
</view> </view>
</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> </view>
</template> </template>
@ -48,6 +29,7 @@
} from 'vue' } from 'vue'
import { import {
gethomelist, gethomelist,
gethomelistforApp,
getMqttPushClient, getMqttPushClient,
selectfjkzbmforfjid, selectfjkzbmforfjid,
createdSwitch, createdSwitch,
@ -90,7 +72,8 @@
// //
const getofficehomelist = async () => { const getofficehomelist = async () => {
await gethomelist().then((res) => { //20250811,,
await gethomelistforApp().then((res) => {
if (res.success) { if (res.success) {
homelist.value = res.result.map((item, index) => ({ homelist.value = res.result.map((item, index) => ({
...item, ...item,