9.17张祥瑞
This commit is contained in:
parent
3d088049ae
commit
bec69289ac
@ -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',
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user