修改默认图片

dev
夜笙歌 1 year ago
parent f50f0ef9e1
commit bbdc214485

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

@ -75,6 +75,11 @@
:src="i.deviceDataMap[Object.keys(i.deviceDataMap).find(e=> i.deviceDataMap[e].toString().includes('http'))]" :src="i.deviceDataMap[Object.keys(i.deviceDataMap).find(e=> i.deviceDataMap[e].toString().includes('http'))]"
style="width: 100%; height: 100%"> style="width: 100%; height: 100%">
</el-image> </el-image>
<el-image
v-else
:src="defaultImg2"
style="width: 100%; height: 100%">
</el-image>
</div> </div>
<div class="rightBg"> <div class="rightBg">
<div class="title">{{ i.deviceName }}</div> <div class="title">{{ i.deviceName }}</div>
@ -109,6 +114,7 @@ import {
} from '@/api/board/equipment' } from '@/api/board/equipment'
import defaultImg from '@/assets/board/equipment/icon.png' import defaultImg from '@/assets/board/equipment/icon.png'
import defaultImg1 from '@/assets/board/equipment/icon2.png' import defaultImg1 from '@/assets/board/equipment/icon2.png'
import defaultImg2 from '@/assets/board/equipment/defaultImg.png'
let getDeviceInterval = null let getDeviceInterval = null
@ -118,6 +124,7 @@ export default {
return { return {
defaultImg, defaultImg,
defaultImg1, defaultImg1,
defaultImg2,
show: false, show: false,
monitorUnitId: '', monitorUnitId: '',
data1: true, data1: true,

Loading…
Cancel
Save