prv
姜玉琦 2024-03-24 20:10:25 +08:00
parent 5abbc49b9f
commit bb2799282c
2 changed files with 26 additions and 12 deletions

View File

@ -1583,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 +
@ -1593,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 +
@ -1603,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 +
@ -1613,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 +

View File

@ -525,6 +525,23 @@ export default {
}, },
init() { init() {
clearTimeout(this.initfunc); clearTimeout(this.initfunc);
clearInterval(this.warningInterval);
//
this.warningInterval = setInterval(this.safeAutomaticRoll, 5000);
this.players.forEach((p) => {
if (p) {
try {
p.stop();
} catch (e) {}
}
});
this.wPlayers.forEach((wp) => {
if (wp) {
try {
wp.stop();
} catch (e) {}
}
});
let initfunc = () => { let initfunc = () => {
this.getAlertorTypeList(); this.getAlertorTypeList();
this.getAiVideoInfoList("", ""); this.getAiVideoInfoList("", "");
@ -533,7 +550,7 @@ export default {
this.getAiVideoAlertorTypeCount(); this.getAiVideoAlertorTypeCount();
this.initAiVideoAlertorTypeDistribution(); this.initAiVideoAlertorTypeDistribution();
}; };
this.initfunc = setTimeout(initfunc, 50); // this.initfunc = setTimeout(initfunc, 100); //
}, },
// //
safeAutomaticRoll() { safeAutomaticRoll() {
@ -674,7 +691,7 @@ export default {
vList.forEach((v, vidx) => { vList.forEach((v, vidx) => {
if (v.state) { if (v.state) {
let url = let url =
"http://111.21.209.230:7086/live/cameraid/" + "https://szgc.jhncidg.com/video/live/cameraid/" +
v.videoDvrNumber + v.videoDvrNumber +
"$" + "$" +
v.passageValue + v.passageValue +
@ -683,7 +700,7 @@ export default {
} }
}); });
} }
}, 800); }, 600);
} else { } else {
for (let i = 0; i < 6; i++) { for (let i = 0; i < 6; i++) {
list.push({ state: false }); list.push({ state: false });
@ -757,7 +774,7 @@ export default {
zdVList.forEach((zdv, zdidx) => { zdVList.forEach((zdv, zdidx) => {
if (zdv.state) { if (zdv.state) {
let url = let url =
"http://111.21.209.230:7086/live/cameraid/" + "https://szgc.jhncidg.com/video/live/cameraid/" +
zdv.videoDvrNumber + zdv.videoDvrNumber +
"$" + "$" +
zdv.passageValue + zdv.passageValue +
@ -766,7 +783,7 @@ export default {
} }
}); });
} }
}, 800); }, 600);
} else { } else {
this.majorVideoSize = 0; this.majorVideoSize = 0;
for (let i = 0; i < 6; i++) { for (let i = 0; i < 6; i++) {
@ -781,9 +798,6 @@ export default {
.listView(this.dept?.id || 0, this.projectInfo?.id) .listView(this.dept?.id || 0, this.projectInfo?.id)
.then((response) => { .then((response) => {
this.warningList = response.data || []; this.warningList = response.data || [];
clearInterval(this.warningInterval);
//
this.warningInterval = setInterval(this.safeAutomaticRoll, 5000);
}); });
}, },
getAiVideoAlertorTypeCount() { getAiVideoAlertorTypeCount() {