Compare commits

..

2 Commits

Author SHA1 Message Date
姜玉琦 bb2799282c 提交 2024-03-24 20:10:30 +08:00
姜玉琦 5abbc49b9f 提交代码 2024-03-24 01:36:09 +08:00
4 changed files with 1113 additions and 815 deletions

View File

@ -2,7 +2,7 @@ import request from '@/utils/request'
const listView=(deptId,projectId)=> { const listView=(deptId,projectId)=> {
return request({ 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' method: 'get'
}) })
} }

View File

@ -242,7 +242,7 @@ export default {
fontSize: "12px", fontSize: "12px",
height: "32px", height: "32px",
}, },
warningInterval: "", warningInterval: undefined,
warningTableData: [], warningTableData: [],
// //
@ -307,16 +307,15 @@ export default {
}; };
}, },
beforeDestroy() { beforeDestroy() {
console.log("-----beforeDestroy------>") console.log("-----beforeDestroy------>");
this.players.forEach(p=>{ this.players.forEach((p) => {
if (p) { if (p) {
try { try {
p.stop(); p.stop();
}catch(e){ } catch (e) {}
} }
} });
}) clearInterval(this.warningInterval);
}, },
mounted() { mounted() {
window.xapp = this; window.xapp = this;
@ -959,7 +958,6 @@ export default {
onMonitoringVideo(n) { onMonitoringVideo(n) {
this.mvNav = n; this.mvNav = n;
}, },
// --------- // ---------
warningScroll() { warningScroll() {
let maxHeight = this.$refs.warning.$el.querySelectorAll(".el-table__body")[0] let maxHeight = this.$refs.warning.$el.querySelectorAll(".el-table__body")[0]
@ -1531,9 +1529,9 @@ export default {
}); });
}, },
// //
beforeDestroy() { // beforeDestroy() {
clearInterval(this.warningInterval);
}, // },
handlePlay(it, idx) { handlePlay(it, idx) {
this.videoReturnData = it; this.videoReturnData = it;
this.currentIndex = idx; this.currentIndex = idx;
@ -1555,15 +1553,13 @@ export default {
// //
initVideo(videoDvrNumber, url) { initVideo(videoDvrNumber, url) {
let that = this; let that = this;
that.players.forEach(p=>{ that.players.forEach((p) => {
if (p) { if (p) {
try { try {
p.stop(); p.stop();
}catch(e){ } catch (e) {}
} }
} });
})
that.players = []; that.players = [];
that.parentVM.vd01Flag = false; that.parentVM.vd01Flag = false;
that.parentVM.vd02Flag = false; that.parentVM.vd02Flag = false;
@ -1587,7 +1583,7 @@ export default {
if (idx == 0) { if (idx == 0) {
//that.url0 = url.replace("{{passage}}", it.passageValue); //that.url0 = url.replace("{{passage}}", it.passageValue);
that.url0 = that.url0 =
"http://111.21.209.230:7086/live/cameraid/" + "https://szgc.jhncidg.com/video/live/cameraid/" +
videoDvrNumber + videoDvrNumber +
"$" + "$" +
it.passageValue + it.passageValue +
@ -1597,7 +1593,7 @@ export default {
if (idx == 1) { if (idx == 1) {
//that.url1 = url.replace("{{passage}}", it.passageValue); //that.url1 = url.replace("{{passage}}", it.passageValue);
that.url1 = that.url1 =
"http://111.21.209.230:7086/live/cameraid/" + "https://szgc.jhncidg.com/video/live/cameraid/" +
videoDvrNumber + videoDvrNumber +
"$" + "$" +
it.passageValue + it.passageValue +
@ -1607,7 +1603,7 @@ export default {
if (idx == 2) { if (idx == 2) {
//that.url2 = url.replace("{{passage}}", it.passageValue); //that.url2 = url.replace("{{passage}}", it.passageValue);
that.url2 = that.url2 =
"http://111.21.209.230:7086/live/cameraid/" + "https://szgc.jhncidg.com/video/live/cameraid/" +
videoDvrNumber + videoDvrNumber +
"$" + "$" +
it.passageValue + it.passageValue +
@ -1617,7 +1613,7 @@ export default {
if (idx == 3) { if (idx == 3) {
//that.url3 = url.replace("{{passage}}", it.passageValue); //that.url3 = url.replace("{{passage}}", it.passageValue);
that.url3 = that.url3 =
"http://111.21.209.230:7086/live/cameraid/" + "https://szgc.jhncidg.com/video/live/cameraid/" +
videoDvrNumber + videoDvrNumber +
"$" + "$" +
it.passageValue + it.passageValue +

File diff suppressed because it is too large Load Diff

View File

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