1.ofice
This commit is contained in:
parent
5477eaebe9
commit
74c0d48277
@ -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',
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user