|
@@ -351,7 +351,8 @@ export default {
|
|
|
unit:undefined,
|
|
|
current:1,
|
|
|
size:15,
|
|
|
- id:undefined
|
|
|
+ id:undefined,
|
|
|
+ token:"d6790e9ac3c419f6fc8d48f8c2957afd"
|
|
|
},
|
|
|
dateDataJlStatus:false,//回放记录时间button状态
|
|
|
//表格自适应高度
|
|
@@ -593,13 +594,14 @@ export default {
|
|
|
//画面列表
|
|
|
playListOperation(row){
|
|
|
this.playListTitle = `"${row.name}"摄像头 画面列表`
|
|
|
- getLocalChannel({"pageSize":1000,"size":"1","deviceId":row.code,"unitType":1}).then(Response =>{
|
|
|
+ getLocalChannel({"pageSize":1000,"size":"1","deviceId":row.code,"unitType":1,token:"d6790e9ac3c419f6fc8d48f8c2957afd"}).then(Response =>{
|
|
|
if(Response.data.pageList.length>0){
|
|
|
this.dhUrl = Response.data.pageList.map((val, index) =>{
|
|
|
return {
|
|
|
id: index + 1,
|
|
|
name: val.name,
|
|
|
- url: "http://" + val.nvr_ip + ":" + val.hls_port + "/live/cameraid/" + val.deviceId + "%24" + val.id.split("$")[(val.id.split("$")).length-1] + "/substream/1.m3u8"
|
|
|
+ url: "http://" + val.nvr_ip + ":" + val.hls_port + "/live/cameraid/" + val.deviceId + "%24" + val.id.split("$")[(val.id.split("$")).length-1] + "/substream/1.m3u8",
|
|
|
+ data:val
|
|
|
};
|
|
|
})
|
|
|
this.NoHplay = true
|
|
@@ -622,6 +624,7 @@ export default {
|
|
|
id: index + 1,
|
|
|
name: val.name,
|
|
|
url:val.url,
|
|
|
+ data:val
|
|
|
}
|
|
|
})
|
|
|
this.NoHplay = false
|
|
@@ -651,8 +654,8 @@ export default {
|
|
|
playH(start,end){
|
|
|
this.destroyHls()
|
|
|
let row = this.hrow
|
|
|
- //let url = "http://" + row.nvr_ip + ":" + row.hls_port + "/vod/device/cameraid/" + row.deviceId + "%24" + row.id.split("$")[(row.id.split("$")).length-1] + "/substream/1/recordtype/1/totallength/" + Number(end-start) + "/begintime/" + start + "/endtime/" + end + ".m3u8"
|
|
|
- this.loadVideoFn(row.url)
|
|
|
+ let url = "http://" + row.data.nvr_ip + ":" + row.data.hls_port + "/vod/device/cameraid/" + row.data.deviceId + "%24" + row.data.id.split("$")[(row.data.id.split("$")).length-1] + "/substream/1/recordtype/1/totallength/" + Number(end-start) + "/begintime/" + start + "/endtime/" + end + ".m3u8"
|
|
|
+ this.loadVideoFn(url)
|
|
|
},
|
|
|
|
|
|
destroyHls: function () {
|
|
@@ -705,7 +708,7 @@ export default {
|
|
|
if(row){
|
|
|
this.AddOrEditForm = row
|
|
|
if(row.code != "1"){
|
|
|
- getLocalChannel({"pageSize":1000,"size":"1","deviceId":row.code,"unitType":1}).then(Response =>{
|
|
|
+ getLocalChannel({"pageSize":1000,"size":"1","deviceId":row.code,"unitType":1,token:"d6790e9ac3c419f6fc8d48f8c2957afd"}).then(Response =>{
|
|
|
if(Response.data.pageList){
|
|
|
this.dhUrl = Response.data.pageList.map((val, index) =>{
|
|
|
return {
|
|
@@ -806,7 +809,7 @@ export default {
|
|
|
deviceUrl(val){
|
|
|
if(val != "1"){
|
|
|
this.AddOrEditForm.GLcode = val
|
|
|
- getLocalChannel({"pageSize":1000,"size":"1","deviceId":val,"unitType":1}).then(Response =>{
|
|
|
+ getLocalChannel({"pageSize":1000,"size":"1","deviceId":val,"unitType":1,token:"d6790e9ac3c419f6fc8d48f8c2957afd"}).then(Response =>{
|
|
|
if(Response.data.pageList){
|
|
|
this.dhUrl = Response.data.pageList.map((val, index) =>{
|
|
|
return {
|