| | |
| | | .then((result) => { |
| | | axios({ |
| | | method: "post", |
| | | url: `/api/blade-jfpts/rvideo/rVoid`, |
| | | timeout: 600000, |
| | | url: `/api/blade-jfpts/rvideo/rVoids`, |
| | | params: { |
| | | sourcePath: result.data.data.flv, |
| | | jid: that.form.id, |
| | | url: result.data.data.flv, |
| | | }, |
| | | }).then((resdata) => {}); |
| | | }); |
| | |
| | | this.videoConversationReal = false; |
| | | this.oldVideoSatart = false; |
| | | }, |
| | | |
| | | getDate() { |
| | | // 当前时间 |
| | | var timestamp = Date.parse(new Date()); |
| | |
| | | ) |
| | | .then(function () { |
| | | that.dialogTableVisible = false; |
| | | |
| | | axios({ |
| | | method: "post", |
| | | url: `/api/blade-jfpts/rvideo/stop`, |
| | | params: { |
| | | jid: row.id, |
| | | }, |
| | | }).then((resdata) => {}); |
| | | |
| | | that.$router.push({ |
| | | path: "/policeTracking/track", |
| | |
| | | |
| | | //启动websocket |
| | | websocketStart() { |
| | | |
| | | var that = this; |
| | | |
| | | if (!window.WebSocket) { |
| | |
| | | |
| | | window.socket.onopen = function (event) {}; |
| | | |
| | | window.socket.onclose = function (event) { |
| | | |
| | | }; |
| | | window.socket.onclose = function (event) {}; |
| | | window.socket.error = function (event) { |
| | | //执行重连 |
| | | that.websocketStart(); |
| | | }; |
| | | |
| | | } else { |
| | | console.log("WebSocket连接没有建立成功!!"); |
| | | } |
| | |
| | | |
| | | //开启心跳传送 |
| | | window.websockPing = setInterval(function () { |
| | | |
| | | if (window.socket.readyState == WebSocket.OPEN) { |
| | | window.socket.send("ping"); |
| | | }else{ |
| | | console.log("心跳停止,断开重连") |
| | | } else { |
| | | console.log("心跳停止,断开重连"); |
| | | //断开连接,重连 |
| | | window.clearTimeout(window.websockPing); |
| | | //执行重连 |
| | | that.websocketStart(); |
| | | } |
| | | |
| | | |
| | | }, 10000); |
| | | } else { |
| | | console.log("WebSocket连接没有建立成功!!"); |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-03-17 15:21:33 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-03-29 14:12:05 |
| | | * @Last Modified time: 2021-04-07 17:36:33 |
| | | */ |
| | | <template> |
| | | <basic-container> |
| | |
| | | labelWidth: "100", |
| | | size: "mini", |
| | | border: false, |
| | | stripe:true, |
| | | stripe: true, |
| | | menuWidth: 240, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | align:"center", |
| | | align: "center", |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | |
| | | { |
| | | label: "报警人", |
| | | prop: "galarmPeople", |
| | | width: 90 |
| | | width: 90, |
| | | }, |
| | | { |
| | | label: "报警人电话", |
| | |
| | | { |
| | | label: "接警人", |
| | | prop: "alarmPeople", |
| | | width: 90 |
| | | width: 90, |
| | | }, |
| | | { |
| | | label: "接警时间", |
| | |
| | | return a.jtype - b.jtype; |
| | | }); |
| | | |
| | | |
| | | |
| | | this.data = data.records; |
| | | |
| | | this.loading = false; |
| | |
| | | ) |
| | | .then(function () { |
| | | that.dialogTableVisible = false; |
| | | |
| | | axios({ |
| | | method: "post", |
| | | url: `/api/blade-jfpts/rvideo/stop`, |
| | | params: { |
| | | jid: row.id, |
| | | }, |
| | | }).then((resdata) => {}); |
| | | |
| | | that.onLoad(that.page, that.query); |
| | | that.$router.push({ |
| | | path: "/policeTracking/track", |
| | |
| | | }); |
| | | |
| | | that.hls.on(Hls.Events.ERROR, function (event, data) { |
| | | |
| | | console.log(data, 4566824159, "视频播放有问题!!!") |
| | | console.log(data, 4566824159, "视频播放有问题!!!"); |
| | | if (data.fatal) { |
| | | switch (data.type) { |
| | | case Hls.ErrorTypes.NETWORK_ERROR: |
| | |
| | | border-color: rgb(64, 158, 255); |
| | | } |
| | | |
| | | .tabFontSize{ |
| | | .tabFontSize { |
| | | font-size: 15px; |
| | | } |
| | | |
| | | </style> |