<template> <div class="bottom" :style="{left: `${windowPostion.x}px`, top: `${windowPostion.y}px`}"> <i class="el-icon-close close-pop" @click="$emit('close')"/> <div style="width: 300px;"> <i class="el-icon-menu item-line one-line" ><span style="margin-left: 10px">点位名称: {{ gdInfo.name }}</span></i> <i class="el-icon-location item-line one-line" ><span style="margin-left: 10px">所属场景: {{ gdInfo.typename }}</span></i> <i class="el-icon-s-order item-line" ><span style="margin-left: 10px">是否赋能: </span></i> <i class="el-icon-s-order item-line" ><span style="margin-left: 10px">是否赋能: </span></i> <i class="el-icon-location item-line" ><span style="margin-left: 10px">赋能算法名称: </span></i> <i class="el-icon-s-order item-line" ><span style="margin-left: 10px">图像正确情况: </span></i> <i class="el-icon-location item-line" :title="gdInfo.location"><span style="margin-left: 5px">位置: </span></i> </div> <video v-show="gdInfo.status !== 'offline'" controls mutedstyle="width: 240px;height: 135px;background-color: #ccc;" width="320" height="180" /> </div> </template> <script> import { showPositin } from '@/utils/freedo/index' export default { name: 'videoPop', data() { return { titleImg: require('@/assets/images/popup/title.png'), // 背景图片 titleAll: require('@/assets/images/popup/title-all.png'),// 背景图片 list: ['', '', '', ''], gdInfo: {}, windowPostion: {x: window.innerWidth - 165, y: window.innerHeight}, // 弹窗的位置 } }, methods: { initData(item) { showPositin(item.lon || item.lng, item.lat) console.log(window.innerWidth, window.innerHeight) // 弹窗位置 if(window.localStorage.getItem('mousePosition')){ // this.windowPostion = JSON.parse(window.localStorage.getItem('mousePosition')) // this.windowPostion.x = Number(this.windowPostion.x) - 165 // this.windowPostion.y = Number(this.windowPostion.y) - 250 this.windowPostion = { x: window.innerWidth / 2 - 165, y: window.innerHeight / 2 } } else { this.windowPostion = { x: window.innerWidth / 2 - 165, y: window.innerHeight/ 2 } } this.gdInfo = item // window.addEventListener('mousemove', (event) => { // this.windowPostion = { // x: event.clientX - 165, // y: event.clientY - 250 // } // }) } }, // mounted(){ // } } </script> <style rel="stylesheet/scss" lang="scss" scoped> .bottom{ z-index: 111111111111; // width: 100%; height: 180px; position: absolute; bottom: 10px; left: 0px; display: flex; justify-content: space-between; overflow: hidden; padding: 10px; padding-right: 20px; background: url("../../../assets/images/popup/case/事件看板背景.png") !important; background-size: 100% 100% !important; .block{ flex: 1; height: 100%; display: flex; flex-wrap: wrap; background: linear-gradient(to top left, rgba(5, 30, 61, 0.62), #0D3F7E9D); border-radius: 5px; box-shadow: 4px 4px 40px rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .05); margin: 0px 5px; flex-direction: column; } .block1{ width: 500px; height: 100%; display: flex; flex-wrap: wrap; background: linear-gradient(to top left, rgba(5, 30, 61, 0.62), #0D3F7E9D); border-radius: 5px; box-shadow: 4px 4px 40px rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .05); margin: 0px 10px; flex-direction: column; } .title{ text-shadow: 0 0 5px #d1ffff; height: 35px; float: left; text-align: left; background-repeat: no-repeat; -webkit-background-size: 100% 100%; background-size: 100% 100% !important; color: white; font-weight: bold; padding-top: 4px; padding-left: 30px; font-family: 黑体; letter-spacing: 1px; } .item-text{ text-shadow: 0 0 2px #d1ffff; flex: 1; font-weight: bold; text-align: center; font-size: 18px; } .base-map-image{ width: 60px; height: 60px; } .num{ text-shadow: 0 0 5px #ffb441; color: #ffb441; font-size: 20px; padding-top: 2px; } .unit{ color: #B3F3F6; font-size: 14px; margin-left: 1px; } .item{ width: 25%; height: 32%; display: flex; justify-content: left; align-items: center; } } .item-line { display: flex; font-size: 1.2rem; color: #aed2f3; padding-left: 20px; line-height: 1.8rem; width: 95%; word-break: break-all; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; /* 设置最大行数 */ -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } </style>