Commit de7e2481 authored by 张伯涛's avatar 张伯涛

大屏问题修改

parent 03b60a3a
......@@ -510,7 +510,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</div>
<div class="videoInfo" v-show="videoOpen">
<div class="alarmInfo_header">
<div class="alarmInfo_title">换热站监控</div>
<div class="alarmInfo_title">{{stationName}}</div>
<div v-if="showVideoClose === true" class="alarmInfo_close" @click="handleVideoClose">X</div>
</div>
<div v-if="videoAllLoading" class="videoLoading-overlayAll">
......@@ -603,6 +603,7 @@ export default defineComponent({
},
data() {
return {
stationName: '',
firstCardLoading: false,
secondCardLoading: false,
thirdCardLoading: false,
......@@ -616,6 +617,8 @@ export default defineComponent({
queryParams: '',
divWidth: '',
divHeight: '',
divDialogWidth: '',
divDialogHeight: '',
queryParamsAll: '',
stopParams: 0,
stopParamsAll: 0,
......@@ -3024,6 +3027,7 @@ export default defineComponent({
}
GYTransferVideo(params).then(res => {
if(res.success === true) {
this.stationName = this.transferList[num].stationName
this.showVideo = true
const list = res.data
this.VideoInfo.playVideoList = []
......@@ -3053,6 +3057,7 @@ export default defineComponent({
},
// 获取港益换热站视频数据
getGYTransferVideo() {
console.log('this.transferList',this.transferList)
this.videoLoading = true
this.videoNum = 0
// this.markerThree.stationId = _this.transferList[0].stationId
......@@ -3072,6 +3077,7 @@ export default defineComponent({
id: this.markerThree.stationId
// id: '9C9D13FA-BA07-4394-8441-55F98F160EDA'
}
this.stationName = this.transferList.find(item=> item.stationId === this.markerThree.stationId).stationName
GYTransferVideo(params).then(res => {
// 我加了判断
......@@ -4259,6 +4265,11 @@ export default defineComponent({
padding: 20px;
font-size: 17px;
}
.alarmInfo_title{
width: 100%;
text-align: center;
font-size: 20px;
}
.alarmInfo_content{
display: flex;
justify-content: center;
......
......@@ -137,12 +137,7 @@ function down(){
window.open(filepath);
}
function resetVideoWidth(){
// var menuWidth=localStorage.getItem("tabWidth");
// if(!menuWidth || menuWidth ==='' || !Number(menuWidth)){
// pProps.divWidth = window.innerWidth - 1570;
// }else{
// pProps.divWidth = window.innerWidth - Number(menuWidth);
// }
console.log('playVW',playWnd_width);
}
......@@ -290,7 +285,6 @@ function initPlugin() {
szClassId: "23BF3B0A-2C56-4D97-9C03-0CB103AA8F11", // 用于IE10使用ActiveX的clsid
cbConnectSuccess: function () { // 创建WebControl实例成功
console.log('创建成功')
emit('initSuccess')
oWebControl.JS_StartService("window", { // WebControl实例创建成功后需要启动服务
dllPath: "./VideoPluginConnect.dll" // 值"./VideoPluginConnect.dll"写死
}).then(function () { // 启动插件服务成功
......@@ -305,6 +299,7 @@ function initPlugin() {
});
//playVideo()
setTimeout(() => playVideoByVideoList(VideoInfo.playVideoList), 2000)
setTimeout(() => emit('initSuccess'), 1000)
},
cbConnectError: function () { // 创建WebControl实例失败
console.log('创建失败')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment