视频监控修改

This commit is contained in:
zzyuan 2025-07-10 10:15:25 +08:00
parent 37d227dc0a
commit dbbbe5829b
2 changed files with 21 additions and 22 deletions

View File

@ -111,13 +111,13 @@ methods:{
success: function (xmlDoc) { success: function (xmlDoc) {
// console.log(that.formatDateTime(that.dateRange[0])) // console.log(that.formatDateTime(that.dateRange[0]))
// console.log(that.formatDateTime(that.dateRange[1])) // console.log(that.formatDateTime(that.dateRange[1]))
oWebVideoCtrl2.I_StartPlayback(szDeviceIdentify, { // oWebVideoCtrl2.I_StartPlayback(szDeviceIdentify, {
szStartTime:that.formatDateTime(that.dateRange[0]), // szStartTime:that.formatDateTime(that.dateRange[0]),
szEndTime:that.formatDateTime(that.dateRange[1]), // szEndTime:that.formatDateTime(that.dateRange[1]),
iChannelID: that.chosenChannel2, // iChannelID: that.chosenChannel2,
iStreamType: oLiveView.iStreamType, // iStreamType: oLiveView.iStreamType,
bZeroChannel: oLiveView.bZeroChannel // bZeroChannel: oLiveView.bZeroChannel
}); // });
} }
}); });
} }
@ -157,7 +157,7 @@ methods:{
this.$modal.msgError("设备未绑定通道号"); this.$modal.msgError("设备未绑定通道号");
} }
}, },
iframeLoaded2(Channel){ iframeLoaded2(){
var oLiveView = { var oLiveView = {
iProtocol: 1, // protocol 1<EFBFBD><EFBFBD>http, 2:https iProtocol: 1, // protocol 1<EFBFBD><EFBFBD>http, 2:https
szIP: "192.168.1.10", // protocol ip szIP: "192.168.1.10", // protocol ip
@ -168,7 +168,7 @@ methods:{
iChannelID: 1, // channel no iChannelID: 1, // channel no
bZeroChannel: false // zero channel bZeroChannel: false // zero channel
} }
var szDeviceIdentify = oLiveView.szIP; var szDeviceIdentify = oLiveView.szIP + "_" + oLiveView.szPort;
var oWebVideoCtrl2 = this.$refs.videoIframe2.contentWindow.WebVideoCtrl; var oWebVideoCtrl2 = this.$refs.videoIframe2.contentWindow.WebVideoCtrl;
var that = this; var that = this;
oWebVideoCtrl2.I_Stop({iWndIndex:0}) oWebVideoCtrl2.I_Stop({iWndIndex:0})
@ -186,9 +186,9 @@ methods:{
}, },
defaultDateRange() { defaultDateRange() {
const end = new Date(new Date().toLocaleDateString()); const end = new Date(new Date().toLocaleDateString());
end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1); end.setTime(end.getTime() + 10 * 60 * 60 * 1000);
const start = new Date((new Date().toLocaleDateString())); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime()+ 9 * 60 * 60 * 1000 - 1); start.setTime(start.getTime()+ 8 * 60 * 60 * 1000);
this.start = parseInt(start.getTime() / 1000) this.start = parseInt(start.getTime() / 1000)
this.end = parseInt(end.getTime() / 1000) this.end = parseInt(end.getTime() / 1000)
return [start, end] return [start, end]

View File

@ -122,16 +122,15 @@ methods:{
var szInfo = "当前选择的窗口编号:" + WndIndex; var szInfo = "当前选择的窗口编号:" + WndIndex;
console.log(szInfo) console.log(szInfo)
that.chosenWinNo = WndIndex; that.chosenWinNo = WndIndex;
}, }
cbDoubleClickWnd: function (iWndIndex, bFullScreen) { // cbDoubleClickWnd: function (iWndIndex, bFullScreen) {
console.log(1111222) // oWebVideoCtrl1.I_FullScreen(iWndIndex,true);
var szInfo = "当前放大的窗口编号:" + iWndIndex; // var szInfo = "" + iWndIndex;
if (!bFullScreen) { // if (!bFullScreen) {
szInfo = "当前还原的窗口编号:" + iWndIndex; // szInfo = "" + iWndIndex;
} // }
console.log(szInfo) // console.log(szInfo)
} // }
//WebVideoCtrl.I_FullScreen(true);isFullScreen
}); });
}, },
iframeLogout(domId){ iframeLogout(domId){
@ -161,7 +160,7 @@ methods:{
async handleNodeClick(data) { async handleNodeClick(data) {
if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){ if(data.deviceExtendInfo&&data.deviceExtendInfo!=""){
let obj = JSON.parse(data.deviceExtendInfo) let obj = JSON.parse(data.deviceExtendInfo)
this.chosenChannel = 15 this.chosenChannel = 18;
this.iframeLoaded(this.chosenWinNo,this.chosenChannel) this.iframeLoaded(this.chosenWinNo,this.chosenChannel)
}else{ }else{
this.$modal.msgError("设备未绑定通道号"); this.$modal.msgError("设备未绑定通道号");