|
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
|
<div class="video_box"> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="6" v-for="item in videoData" :key="item.id"> |
|
|
|
|
<VideoPlayer :name="item.name" :id="item.id" :code="item.cameraIndexCode" |
|
|
|
|
<VideoPlayer :name="item.name" :id="item.id" :code="item.sn" |
|
|
|
|
:url="'https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv'" |
|
|
|
|
:playbackUrl="'https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv'" /> |
|
|
|
|
</el-col> |
|
|
|
|
@ -327,9 +327,9 @@ export default { |
|
|
|
|
if (token == 'undefined' || !token) { |
|
|
|
|
bizLogin({ appKey: 'Arf7bd4f26', appSecret: 'kb207044c8' }).then(res => { |
|
|
|
|
window.sessionStorage.setItem('bizToken', res.data.data.token); |
|
|
|
|
bizDeviceList(res.data.data.token, { 'params[pmac]': row.deviceId }).then(res2 => { |
|
|
|
|
getDeviceCamera(res.data.data.token, { sn: row.hostSerialNumber }).then(res2 => { |
|
|
|
|
const data = res2.data; |
|
|
|
|
this.videoData = data.rows; |
|
|
|
|
this.videoData = data; |
|
|
|
|
if (this.videoData.length === 0) { |
|
|
|
|
this.$message.warning('未查询到该报警点摄像头'); |
|
|
|
|
} |
|
|
|
|
@ -339,14 +339,14 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
bizDeviceList(token, { 'params[pmac]': row.deviceId }).then(res2 => { |
|
|
|
|
getDeviceCamera(res.data.data.token, { sn: row.hostSerialNumber }).then(res2 => { |
|
|
|
|
if (res2.data.code == 401) { |
|
|
|
|
window.sessionStorage.removeItem('bizToken'); |
|
|
|
|
this.linkVideo(row); |
|
|
|
|
} |
|
|
|
|
else if (res2.data.code == 200) { |
|
|
|
|
const data = res2.data; |
|
|
|
|
this.videoData = data.rows; |
|
|
|
|
this.videoData = data; |
|
|
|
|
if (this.videoData.length === 0) { |
|
|
|
|
this.$message.warning('未查询到该报警点摄像头'); |
|
|
|
|
} |
|
|
|
|
|