提交代码

prv
姜玉琦 2024-03-24 01:36:02 +08:00
parent d0dc1f2085
commit 5abbc49b9f
4 changed files with 1099 additions and 815 deletions

View File

@ -2,7 +2,7 @@ import request from '@/utils/request'
const listView=(deptId,projectId)=> {
return request({
url: `/bgscreen/aiBoxVideo/listView?deptId=${deptId||0}&projectId=${projectId||0}`,
url: `/bgscreen/aiBoxVideo/listView?deptId=${deptId||0}&projectId=${projectId||0}&pageSize=20&pageNum=1`,
method: 'get'
})
}

View File

@ -242,7 +242,7 @@ export default {
fontSize: "12px",
height: "32px",
},
warningInterval: "",
warningInterval: undefined,
warningTableData: [],
//
@ -306,20 +306,19 @@ export default {
parentVM: { vd01Flag: true, vd02Flag: true, vd03Flag: true, vd04Flag: true },
};
},
beforeDestroy(){
console.log("-----beforeDestroy------>")
this.players.forEach(p=>{
if(p){
try{
beforeDestroy() {
console.log("-----beforeDestroy------>");
this.players.forEach((p) => {
if (p) {
try {
p.stop();
}catch(e){
} catch (e) {}
}
}
})
});
clearInterval(this.warningInterval);
},
mounted() {
window.xapp=this;
window.xapp = this;
this.$bus.$on(
"projectChange",
debounce((res) => {
@ -959,7 +958,6 @@ export default {
onMonitoringVideo(n) {
this.mvNav = n;
},
// ---------
warningScroll() {
let maxHeight = this.$refs.warning.$el.querySelectorAll(".el-table__body")[0]
@ -1531,9 +1529,9 @@ export default {
});
},
//
beforeDestroy() {
clearInterval(this.warningInterval);
},
// beforeDestroy() {
// },
handlePlay(it, idx) {
this.videoReturnData = it;
this.currentIndex = idx;
@ -1555,32 +1553,30 @@ export default {
//
initVideo(videoDvrNumber, url) {
let that = this;
that.players.forEach(p=>{
if(p){
try{
that.players.forEach((p) => {
if (p) {
try {
p.stop();
}catch(e){
} catch (e) {}
}
}
})
});
that.players = [];
that.parentVM.vd01Flag=false;
that.parentVM.vd02Flag=false;
that.parentVM.vd03Flag=false;
that.parentVM.vd04Flag=false;
that.parentVM.vd01Flag = false;
that.parentVM.vd02Flag = false;
that.parentVM.vd03Flag = false;
that.parentVM.vd04Flag = false;
this.$api.video.getVideoPassage(videoDvrNumber).then((response) => {
let data = response.data;
this.videoPassageList = data;
that.showVideo = true;
that.parentVM.vd01Flag=true;
that.parentVM.vd02Flag=true;
that.parentVM.vd03Flag=true;
that.parentVM.vd04Flag=true;
setTimeout(()=>{
that.parentVM.vd01Flag = true;
that.parentVM.vd02Flag = true;
that.parentVM.vd03Flag = true;
that.parentVM.vd04Flag = true;
setTimeout(() => {
data.forEach((it, idx) => {
let player = new WasmPlayer(null, "vd0" + (idx+1), null, {
let player = new WasmPlayer(null, "vd0" + (idx + 1), null, {
Height: true,
});
that.players.push(player);
@ -1625,7 +1621,7 @@ export default {
that.players[3].play(that.url3, 1);
}
});
},400);
}, 400);
});
},
handleOnError0(error) {

File diff suppressed because it is too large Load Diff

View File

@ -8,13 +8,13 @@ module.exports = defineConfig({
port: 3000,
open: true,
proxy: {
'/jhapi/profile':{
target: `http://62.234.3.186/jhapi/profile/`,
changeOrigin: true,
pathRewrite: {
'^/jhapi/profile':'/'
}
},
// '/jhapi/profile':{
// target: `http://62.234.3.186/jhapi/profile/`,
// changeOrigin: true,
// pathRewrite: {
// '^/jhapi/profile':'/'
// }
// },
'/jhapp':{
target: `http://62.234.3.186/`,
changeOrigin: true,
@ -46,7 +46,7 @@ module.exports = defineConfig({
}
},
'/profile':{
target: `http://62.234.3.186/profile/`,
target: `http://szgc.jhncidg.com/jhapi/profile`,
changeOrigin: true,
pathRewrite: {
'^/profile':'/'