Browse Source

大屏environmentalScreen修改

master
z_yu 2 years ago
parent
commit
f853cf6b2e
  1. 119
      src/views/environmentalScreen/data1.json
  2. 285
      src/views/environmentalScreen/index.vue
  3. 4
      src/views/storeManage/warehouse3D/archivesStorage/index.vue

119
src/views/environmentalScreen/data1.json

@ -1,119 +0,0 @@
{
"rows":[
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
},
{
"time":"2022-6-30 13:00",
"warehouse":"文书档案库房",
"warning":"温度温度温度温度温度温度",
"name":"温度温度温度温度温度温度"
}
]
}

285
src/views/environmentalScreen/index.vue

@ -9,32 +9,32 @@
<span class="left-bottom-line" /> <span class="left-bottom-line" />
<h3><i class="iconfont icon-kongqizhiliangshuju" />档案库空气质量数据</h3> <h3><i class="iconfont icon-kongqizhiliangshuju" />档案库空气质量数据</h3>
<ul class="screen-env-list"> <ul class="screen-env-list">
<li>
<li v-show="topDisplayData.DAK_DIV_TOP_003.show" :class="{ 'li-warn': topDisplayData.DAK_DIV_TOP_003.curstatus > 0 }">
<svg-icon icon-class="co2" class-name="msg-list-svg" /> <svg-icon icon-class="co2" class-name="msg-list-svg" />
<div class="msg-txt"> <div class="msg-txt">
<span class="msg-list-num">60</span>
<p class="msg-list-unit">CO2ppm</p>
<span class="msg-list-num">{{ topDisplayData.DAK_DIV_TOP_003.curValue }}</span>
<p class="msg-list-unit">CO2 {{ topDisplayData.DAK_DIV_TOP_003.unit }}</p>
</div> </div>
</li> </li>
<li>
<li v-show="topDisplayData.DAK_DIV_TOP_004.show" :class="{ 'li-warn': topDisplayData.DAK_DIV_TOP_004.curstatus > 0 }">
<svg-icon icon-class="voc" class-name="msg-list-svg" /> <svg-icon icon-class="voc" class-name="msg-list-svg" />
<div class="msg-txt"> <div class="msg-txt">
<span class="msg-list-num">60</span>
<p class="msg-list-unit">VOCmg/m³</p>
<span class="msg-list-num">{{ topDisplayData.DAK_DIV_TOP_004.curValue }}</span>
<p class="msg-list-unit">VOC {{ topDisplayData.DAK_DIV_TOP_004.unit }}</p>
</div> </div>
</li> </li>
<li class="msg-pm li-warn">
<li v-show="topDisplayData.DAK_DIV_TOP_005.show" :class="{ 'li-warn': topDisplayData.DAK_DIV_TOP_005.curstatus > 0 }" class="msg-pm">
<svg-icon icon-class="pm25" class-name="msg-list-svg" /> <svg-icon icon-class="pm25" class-name="msg-list-svg" />
<div class="msg-txt"> <div class="msg-txt">
<span class="msg-list-num">60</span>
<p class="msg-list-unit">PM2.5ug/m³</p>
<span class="msg-list-num">{{ topDisplayData.DAK_DIV_TOP_005.curValue }}</span>
<p class="msg-list-unit">PM2.5 {{ topDisplayData.DAK_DIV_TOP_005.unit }}</p>
</div> </div>
</li> </li>
<li class="msg-pm">
<li v-show="topDisplayData.DAK_DIV_TOP_006.show" :class="{ 'li-warn': topDisplayData.DAK_DIV_TOP_006.curstatus > 0 }" class="msg-pm">
<svg-icon icon-class="pm10" class-name="msg-list-svg" /> <svg-icon icon-class="pm10" class-name="msg-list-svg" />
<div class="msg-txt"> <div class="msg-txt">
<span class="msg-list-num">60</span>
<p class="msg-list-unit">PM10ug/m³</p>
<span class="msg-list-num">{{ topDisplayData.DAK_DIV_TOP_006.curValue }}</span>
<p class="msg-list-unit">PM10 {{ topDisplayData.DAK_DIV_TOP_006.unit }}</p>
</div> </div>
</li> </li>
</ul> </ul>
@ -90,28 +90,20 @@
</div> </div>
<div class="env-main-middle"> <div class="env-main-middle">
<div class="env-3d"> <div class="env-3d">
<iframe
id="myIframe"
ref="myIframe"
name="iframeMap"
class="iframe_box"
src="/webA/index.html"
frameborder="0"
scrolling="no"
/>
<iframe id="myIframe" ref="myIframe" name="iframeMap" class="iframe_box" src="/webA/index.html" frameborder="0" scrolling="no" />
<ul class="screen-env-list"> <ul class="screen-env-list">
<li>
<li v-show="topDisplayData.DAK_DIV_TOP_001.show" :class="{ 'li-warn': topDisplayData.DAK_DIV_TOP_001.curstatus > 0 }">
<svg-icon icon-class="temperature" class-name="msg-list-svg" /> <svg-icon icon-class="temperature" class-name="msg-list-svg" />
<div class="msg-txt"> <div class="msg-txt">
<span class="msg-list-num">60</span>
<p class="msg-list-unit">温度</p>
<span class="msg-list-num">{{ topDisplayData.DAK_DIV_TOP_001.curValue }}</span>
<p class="msg-list-unit">温度 {{ topDisplayData.DAK_DIV_TOP_001.unit }}</p>
</div> </div>
</li> </li>
<li class="li-warn">
<li v-show="topDisplayData.DAK_DIV_TOP_002.show" :class="{ 'li-warn': topDisplayData.DAK_DIV_TOP_002.curstatus > 0 }">
<svg-icon icon-class="shidu" class-name="msg-list-svg" /> <svg-icon icon-class="shidu" class-name="msg-list-svg" />
<div class="msg-txt"> <div class="msg-txt">
<span class="msg-list-num">60</span>
<p class="msg-list-unit">湿度%</p>
<span class="msg-list-num">{{ topDisplayData.DAK_DIV_TOP_002.curValue }}</span>
<p class="msg-list-unit">湿度 {{ topDisplayData.DAK_DIV_TOP_002.unit }}</p>
</div> </div>
</li> </li>
</ul> </ul>
@ -217,20 +209,11 @@ import { getCurrentTime } from '@/utils/index'
import typePie from '@/views/components/echarts/typePie.vue' import typePie from '@/views/components/echarts/typePie.vue'
import lendAcross from '@/views/components/echarts/lendAcross.vue' import lendAcross from '@/views/components/echarts/lendAcross.vue'
import Video from '@/views/storeManage/warehouse3D/module/video' import Video from '@/views/storeManage/warehouse3D/module/video'
import data1 from './data1.json'
import WarehouseWarning from '@/views/components/WarehouseWarning' import WarehouseWarning from '@/views/components/WarehouseWarning'
import SecurityDoor from '@/views/components/SecurityDoor' import SecurityDoor from '@/views/components/SecurityDoor'
import displayConfigApi from '@/api/storeManage/displayConfig'
import thirdApi from '@/api/thirdApi'
import { statisticsCrud } from '@/views/system/archiveStatistics/mixins/statistics' import { statisticsCrud } from '@/views/system/archiveStatistics/mixins/statistics'
const lineChartData = {
readRoomData: {
temperatureData: [16, 12, 15, 11, 20, 16, 15, 22],
humidnessData: [10, 50, 40, 60, 50, 30, 15, 30]
},
collateRoomData: {
temperatureData: [16, 12, 15, 11, 20, 16, 15, 22],
humidnessData: [10, 50, 40, 60, 50, 30, 15, 30]
}
}
export default { export default {
name: 'EnvironmentalScreen', name: 'EnvironmentalScreen',
components: { components: {
@ -245,21 +228,73 @@ export default {
return { return {
nowDate: '', nowDate: '',
timer: null, timer: null,
tableData: [],
lineChartData: lineChartData,
lendData: [], lendData: [],
typeData: [], typeData: [],
className: ['readRoomContainer', 'collateRoomContainer']
className: ['readRoomContainer', 'collateRoomContainer'],
roomId: 'D6490DA3D4261E8C26D0E3',
allDisplayConfigData: [],
displayConfigData: [],
url: '',
allDeviceIds: [],
oaoMessage: [],
topDisplayData: {
DAK_DIV_TOP_001: {
show: false,
curValue: '',
unit: '',
curstatus: 0
},
DAK_DIV_TOP_002: {
show: false,
curValue: '',
unit: '',
curstatus: 0
},
DAK_DIV_TOP_003: {
show: false,
curValue: '',
unit: '',
curstatus: 0
},
DAK_DIV_TOP_004: {
show: false,
curValue: '',
unit: '',
curstatus: 0
},
DAK_DIV_TOP_005: {
show: false,
curValue: '',
unit: '',
curstatus: 0
},
DAK_DIV_TOP_006: {
show: false,
curValue: '',
unit: '',
curstatus: 0
}
}
} }
}, },
created() {
async created() {
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.nowDate = getCurrentTime() this.nowDate = getCurrentTime()
}, 1000) }, 1000)
window.getIframeLoading = this.getIframeLoading // vuewindow window.getIframeLoading = this.getIframeLoading // vuewindow
this.allDisplayConfigData = await displayConfigApi.list({ storeroomId: this.roomId })
this.allDisplayConfigData.forEach(element => {
if (element.isDisplay && element.bindState && element.deviceInfo && (element.divPosition.includes('OAO') || element.divPosition.includes('TOP') || element.divPosition.includes('LS'))) {
this.allDeviceIds.push(element.deviceInfo.deviceId)
if (!this.url) {
this.url = 'http://' + element.deviceInfo.deviceIp + ':' + element.deviceInfo.devicePort
}
}
})
this.displayConfigData = this.allDisplayConfigData.filter((item) => { return item.isDisplay && item.bindState && item.deviceInfo && (item.divPosition.includes('OAO') || item.divPosition.includes('TOP') || item.divPosition.includes('LS')) })
await this.getRealTimeData()
}, },
mounted() { mounted() {
this.tableData = data1.rows
const _this = this const _this = this
this.iframeWin = this.$refs.myIframe.contentWindow this.iframeWin = this.$refs.myIframe.contentWindow
// inframe // inframe
@ -267,50 +302,39 @@ export default {
_this.deviceState() _this.deviceState()
} }
window.addEventListener('message', this.handleMessageDevice) window.addEventListener('message', this.handleMessageDevice)
//
this.dataTimer = setInterval(async() => {
await _this.getRealTimeData()
_this.handleAQI()
}, 10000)
}, },
beforeDestroy() { beforeDestroy() {
if (this.timer) { if (this.timer) {
clearInterval(this.timer) clearInterval(this.timer)
} }
if (this.dataTimer) {
clearInterval(this.dataTimer)
}
}, },
methods: { methods: {
// //
getIframeLoading(value) { getIframeLoading(value) {
// console.log(`iframe${value}`) // console.log(`iframe${value}`)
if (value === 'false') { if (value === 'false') {
this.handleHide('DAK_MO_OAO_001')
this.handleAlarm('DAK_MO_OAO_003')
this.allDisplayConfigData.forEach(element => {
if ((!element.isDisplay || !element.bindState) && element.divPosition.includes('OAO')) {
this.handleHide(element.divPosition)
}
})
// this.handleAlarm('DAK_MO_OAO_003')
this.deviceState()
this.handleAQI()
} }
}, },
// data / iframe // data / iframe
deviceState(e) { deviceState(e) {
this.iframeWin.postMessage({ this.iframeWin.postMessage({
data: [
{
id: 'DAK_MO_OAO_001',
wendu: 6,
sidu: 10,
alarmState: false
},
{
id: 'DAK_MO_OAO_002',
wendu: 2,
sidu: 5,
alarmState: false
},
{
id: 'DAK_MO_OAO_003',
wendu: 3,
sidu: 1,
alarmState: false
},
{
id: 'DAK_MO_OAO_004',
wendu: 6,
sidu: 6,
alarmState: false
}
]
data: this.oaoMessage
}, '*') }, '*')
}, },
// / // /
@ -330,13 +354,20 @@ export default {
} }
}, },
// 湿 // 湿
handleAQI(deviceId, wendu, sidu) {
window.frames['iframeMap'].setAlertValue(deviceId, wendu, sidu)
handleAQI() {
this.oaoMessage.forEach(element => {
window.frames['iframeMap'].setAlertValue(element.id, element.wendu, element.sidu)
})
}, },
// 湿 // 湿
handleAlarm(deviceId) { handleAlarm(deviceId) {
window.frames['iframeMap'].Myalert(deviceId, true) window.frames['iframeMap'].Myalert(deviceId, true)
}, },
//
handleHide(deviceId) {
// true false
window.frames['iframeMap'].setYangGanCanshow(deviceId, false)
},
// //
rowBgColor({ row, rowIndex }) { rowBgColor({ row, rowIndex }) {
if (rowIndex % 2 === 1) { if (rowIndex % 2 === 1) {
@ -344,13 +375,59 @@ export default {
} else { } else {
return '' return ''
} }
},
getRealTimeData() {
if (this.allDeviceIds.length > 0) {
thirdApi.getRealTimeData({ ids: this.allDeviceIds, url: this.url }).then((data) => {
this.oaoMessage.splice(0, this.oaoMessage.length)
this.displayConfigData.forEach(element => {
if (element.divPosition.includes('TOP') && element.deviceSpecParams[0]) {
// div
const result = data.find((item) => {
return item.property_id === element.deviceSpecParams[0].paramId && item.device_id === element.deviceInfo.deviceId
})
this.$set(this.topDisplayData, element.divPosition, {
show: true,
curValue: result.curvalue,
unit: result.unit,
curstatus: result.curstatus
})
} else if (element.divPosition.includes('OAO')) {
// 3D
const wenduParamId = element.deviceSpecParams.find((item) => { return item.paramName === '温度' })?.paramId
const siduParamId = element.deviceSpecParams.find((item) => { return item.paramName === '湿度' })?.paramId
let wendu = {}
let sidu = {}
if (wenduParamId) {
wendu = data.find((item) => {
return item.property_id === wenduParamId && item.device_id === element.deviceInfo.deviceId
})
}
if (siduParamId) {
sidu = data.find((item) => {
return item.property_id === siduParamId && item.device_id === element.deviceInfo.deviceId
})
}
console.log(wendu?.curstatus, sidu?.curstatus)
this.oaoMessage.push({
id: element.divPosition,
wendu: (wendu?.curvalue) ? (Math.round(wendu?.curvalue)) : '-',
sidu: (sidu?.curvalue) ? (Math.round(sidu?.curvalue)) : '-',
alarmState: (wendu && wendu.curstatus > 0) || (sidu && sidu.curstatus > 0)
})
} else {
// LS
}
})
})
}
} }
} }
} }
</script> </script>
<style rel="stylesheet/scss" lang="scss" scoped> <style rel="stylesheet/scss" lang="scss" scoped>
@import '~@/assets/styles/lend-manage.scss';
@import "~@/assets/styles/lend-manage.scss";
.env-container { .env-container {
width: 100%; width: 100%;
height: calc(100vh); height: calc(100vh);
@ -358,7 +435,7 @@ export default {
.env-top-title { .env-top-title {
width: calc(100vw); width: calc(100vw);
height: 130px; height: 130px;
background: url('~@/assets/images/largeScreen/top-title.png') no-repeat 0 -14px;
background: url("~@/assets/images/largeScreen/top-title.png") no-repeat 0 -14px;
background-size: contain; background-size: contain;
} }
.current-date { .current-date {
@ -366,7 +443,7 @@ export default {
top: 25px; top: 25px;
right: 150px; right: 150px;
font-size: 16px; font-size: 16px;
color: #3A99FD;
color: #3a99fd;
} }
.env-main { .env-main {
display: flex; display: flex;
@ -401,7 +478,7 @@ export default {
.iconfont { .iconfont {
margin-right: 10px; margin-right: 10px;
font-size: 14px; font-size: 14px;
color: #F65163;
color: #f65163;
} }
&::before { &::before {
content: ""; content: "";
@ -411,7 +488,8 @@ export default {
width: 36px; width: 36px;
height: 12px; height: 12px;
margin-top: -6px; margin-top: -6px;
background: url('~@/assets/images/largeScreen/item-left.png') no-repeat;
background: url("~@/assets/images/largeScreen/item-left.png")
no-repeat;
background-size: cover; background-size: cover;
} }
&::after { &::after {
@ -422,7 +500,8 @@ export default {
width: 36px; width: 36px;
height: 12px; height: 12px;
margin-top: -6px; margin-top: -6px;
background: url('~@/assets/images/largeScreen/item-right.png') no-repeat;
background: url("~@/assets/images/largeScreen/item-right.png")
no-repeat;
background-size: cover; background-size: cover;
} }
} }
@ -451,7 +530,7 @@ export default {
.leakage-detection { .leakage-detection {
padding: 0 44px; padding: 0 44px;
font-size: 14px; font-size: 14px;
color: #339CFF;
color: #339cff;
height: calc(100% - 38px); height: calc(100% - 38px);
.leakage-list { .leakage-list {
height: calc(100% - 26px); height: calc(100% - 26px);
@ -464,8 +543,8 @@ export default {
height: calc(100% / 4 - 14px); height: calc(100% / 4 - 14px);
margin-bottom: 14px; margin-bottom: 14px;
padding: 0 30px; padding: 0 30px;
border: 1px solid #3581CC;
background-color: #02255F;
border: 1px solid #3581cc;
background-color: #02255f;
border-radius: 2px; border-radius: 2px;
&::before { &::before {
content: ""; content: "";
@ -474,7 +553,7 @@ export default {
left: 4px; left: 4px;
width: 0; width: 0;
height: 0; height: 0;
border-color: transparent #339CFF;
border-color: transparent #339cff;
border-width: 0 0 6px 6px; border-width: 0 0 6px 6px;
border-style: solid; border-style: solid;
} }
@ -489,7 +568,7 @@ export default {
width: 6px; width: 6px;
height: 6px; height: 6px;
border-radius: 50%; border-radius: 50%;
background-color: #18B08F;
background-color: #18b08f;
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
@ -498,21 +577,21 @@ export default {
width: 14px; width: 14px;
height: 14px; height: 14px;
border-radius: 50%; border-radius: 50%;
box-shadow: inset 0px 0px 10px 1px #18B08F;
box-shadow: inset 0px 0px 10px 1px #18b08f;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
} }
&.leakage-warn { &.leakage-warn {
border-color: #F65164;
box-shadow: inset 0px 0px 15px 1px #F65164;
color: #F65164;
border-color: #f65164;
box-shadow: inset 0px 0px 15px 1px #f65164;
color: #f65164;
&::before { &::before {
border-color: transparent #F65164;
border-color: transparent #f65164;
} }
span.leakage-state-tip { span.leakage-state-tip {
background-color: #F65164;
background-color: #f65164;
&::before { &::before {
box-shadow: inset 0px 0px 10px 1px #F65164;
box-shadow: inset 0px 0px 10px 1px #f65164;
} }
} }
} }
@ -524,7 +603,7 @@ export default {
justify-content: flex-end; justify-content: flex-end;
margin-bottom: 10px; margin-bottom: 10px;
font-size: 14px; font-size: 14px;
color: #339CFF;
color: #339cff;
span { span {
position: relative; position: relative;
display: block; display: block;
@ -539,10 +618,10 @@ export default {
height: 10px; height: 10px;
border-radius: 50%; border-radius: 50%;
margin-top: -5px; margin-top: -5px;
background-color: #18B08F;
background-color: #18b08f;
} }
&:last-child::before { &:last-child::before {
background-color:#F65164;
background-color: #f65164;
} }
} }
} }
@ -566,7 +645,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: calc(100% - 40px); height: calc(100% - 40px);
border: 1px solid #3581CC;
border: 1px solid #3581cc;
margin-bottom: 10px; margin-bottom: 10px;
img { img {
display: block; display: block;
@ -582,9 +661,9 @@ export default {
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
font-size: 14px; font-size: 14px;
color: #339CFF;
border: 1px solid #3581CC;
background-color: #02255F;
color: #339cff;
border: 1px solid #3581cc;
background-color: #02255f;
border-radius: 36px; border-radius: 36px;
span { span {
position: relative; position: relative;
@ -597,7 +676,7 @@ export default {
height: 6px; height: 6px;
margin-left: 14px; margin-left: 14px;
border-radius: 50%; border-radius: 50%;
background-color: #18B08F;
background-color: #18b08f;
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
@ -606,7 +685,7 @@ export default {
width: 14px; width: 14px;
height: 14px; height: 14px;
border-radius: 50%; border-radius: 50%;
box-shadow: inset 0px 0px 10px 1px #18B08F;
box-shadow: inset 0px 0px 10px 1px #18b08f;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
} }
@ -614,9 +693,9 @@ export default {
&.device-warn { &.device-warn {
.env-device-text { .env-device-text {
span { span {
background-color: #F65164;
background-color: #f65164;
&::before { &::before {
box-shadow: inset 0px 0px 10px 1px #F65164;
box-shadow: inset 0px 0px 10px 1px #f65164;
} }
} }
} }
@ -629,7 +708,7 @@ export default {
width: 100%; width: 100%;
height: calc(100% - (100% / 3) - 8px); height: calc(100% - (100% / 3) - 8px);
margin-bottom: 20px; margin-bottom: 20px;
background: url('~@/assets/images/largeScreen/bg.png') no-repeat center -130px;
background: url("~@/assets/images/largeScreen/bg.png") no-repeat center -130px;
// background-size: 100% 100%; // background-size: 100% 100%;
overflow: hidden; overflow: hidden;
.iframe_box { .iframe_box {

4
src/views/storeManage/warehouse3D/archivesStorage/index.vue

@ -187,7 +187,9 @@ export default {
}, 10000) }, 10000)
}, },
beforeDestroy() { beforeDestroy() {
if (this.timer) {
clearInterval(this.timer) clearInterval(this.timer)
}
}, },
methods: { methods: {
// //
@ -223,7 +225,7 @@ export default {
} }
}, },
// 湿 // 湿
handleAQI(deviceId, wendu, sidu) {
handleAQI() {
this.oaoMessage.forEach(element => { this.oaoMessage.forEach(element => {
window.frames['iframeMap'].setAlertValue(element.id, element.wendu, element.sidu) window.frames['iframeMap'].setAlertValue(element.id, element.wendu, element.sidu)
}) })

Loading…
Cancel
Save