|
@@ -178,17 +178,17 @@
|
|
|
>
|
|
|
<div>
|
|
|
<LightMore
|
|
|
- v-if="isPopup&&popupType == 'lamp'"
|
|
|
+ v-if="popupType == 'lamp'"
|
|
|
:equipList="lampEquipList"
|
|
|
:lampStatus="lampStatus"
|
|
|
></LightMore>
|
|
|
<CurtainMore
|
|
|
- v-if="isPopup&&popupType == 'curtain'"
|
|
|
+ v-if="popupType == 'curtain'"
|
|
|
:currentCurtains="spaceDevice.curtains"
|
|
|
></CurtainMore>
|
|
|
<AirMore
|
|
|
@getStatus="getAirStatus"
|
|
|
- v-if="isPopup&&popupType == 'air'"
|
|
|
+ v-if="popupType == 'air'"
|
|
|
:airList="airEquipList"
|
|
|
:status="airStatus"
|
|
|
></AirMore>
|
|
@@ -213,7 +213,7 @@ import { ENV_CONFIG, lanageArr, roomSourceData } from './const'
|
|
|
|
|
|
const boxLine = require('@/assets/taiguv1/svg/box_line.png')
|
|
|
// import "vue3-video-play/dist/style.css";
|
|
|
-import { httpGetByMeetingId, HttpGetSpaceInfo, queryAirStatus, queryAudioStatus, queryLampStatus, queryScreenCastingStatus } from '@/apis/taiguv1'
|
|
|
+import { findForServe, httpGetByMeetingId, HttpGetSpaceInfo, queryAirStatus, queryAudioStatus, queryLampStatus, queryScreenCastingStatus } from '@/apis/taiguv1'
|
|
|
import useDeviceControl from '@/hooks/useDeviceControl'
|
|
|
import { useStore } from '@/store'
|
|
|
const type = ref(localStorage.getItem('lang') || 'zh-CN')
|
|
@@ -264,8 +264,8 @@ const { locale } = useI18n()
|
|
|
const checkLanage = item => {
|
|
|
type.value = item.type
|
|
|
// TODO: 切换语言
|
|
|
-// locale.value = item.type
|
|
|
-// localStorage.setItem('lang', item.type) // 持久化存储
|
|
|
+ locale.value = item.type
|
|
|
+ localStorage.setItem('lang', item.type) // 持久化存储
|
|
|
}
|
|
|
|
|
|
const handleChildLampSwitch = (status, text) => {
|
|
@@ -282,8 +282,9 @@ const store = useStore()
|
|
|
|
|
|
onMounted(() => {
|
|
|
// TODO: 切换语言
|
|
|
-// type.value = localStorage.getItem('lang') || 'zh-CN'
|
|
|
-// locale.value = type.value
|
|
|
+ type.value = localStorage.getItem('lang') || 'zh-CN'
|
|
|
+ locale.value = type.value
|
|
|
+
|
|
|
try {
|
|
|
let roomId = route.query.id || 'room4'
|
|
|
|
|
@@ -295,7 +296,8 @@ onMounted(() => {
|
|
|
// 获取场景===>轮询 30s
|
|
|
getSpaceScene({ meetingId: roomInfo.value.meetingId })
|
|
|
}
|
|
|
-
|
|
|
+ // 获取窗帘列表
|
|
|
+ getCurtainList()
|
|
|
// 获取设备的状态===>需要轮询
|
|
|
getDeviceStatus()
|
|
|
// 获取空间环境参数 轮询 5 分钟
|
|
@@ -442,6 +444,16 @@ const sendCommand = () => {
|
|
|
deviceControl.sendCommands(commands)
|
|
|
}
|
|
|
|
|
|
+const getCurtainList = () => {
|
|
|
+ findForServe({
|
|
|
+ projectId,
|
|
|
+ spaceId: roomInfo.value.spaceId,
|
|
|
+ }).then(res => {
|
|
|
+ console.log(res, 'res窗帘');
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
// 获取设备状态
|
|
|
const getDeviceStatus = () => {
|
|
|
let params = {
|