|
|
@ -158,7 +158,7 @@ export default { |
|
|
|
queryData(flag) { |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
getData() { //列表数据查询 |
|
|
|
if (this.activeName === '-1') { |
|
|
|
request({ |
|
|
|
url: `/perceivedEvents/warning/perceivedEventsList`,//感知事件 |
|
|
@ -259,7 +259,7 @@ export default { |
|
|
|
onCloseAddNew() { |
|
|
|
this.isShowAddNew = false; |
|
|
|
}, |
|
|
|
firstBtnClick(id) { |
|
|
|
firstBtnClick(id) {//点击去确认/详情/处置记录等第一个按钮 |
|
|
|
console.log("id", id); |
|
|
|
if (this.activeName == '-1') { |
|
|
|
request({ |
|
|
@ -289,7 +289,7 @@ export default { |
|
|
|
data.videoList = otherConfig.videoList || [] |
|
|
|
// data.videoList = otherConfig.videoList || ['https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4'] |
|
|
|
} |
|
|
|
|
|
|
|
data.videoType = "mp4"; |
|
|
|
this.detailDialogFormData = data; |
|
|
|
// console.log('data', this.detailDialogFormData) |
|
|
|
|
|
|
@ -299,7 +299,7 @@ export default { |
|
|
|
request({ |
|
|
|
url: `/dc/system/event/${id}`,//交通事件 |
|
|
|
method: "get", |
|
|
|
}).then((result) => { |
|
|
|
}).then(async (result) => { |
|
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
|
let data = result.data; |
|
|
|
data.stringDirection = gzDirectionMapping[data.direction] || data.direction; |
|
|
@ -307,15 +307,16 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
data.videoList = []; |
|
|
|
// const cameraData = (await getNearCameraNew(data.stakeMark));//新的上下游摄像头接口 |
|
|
|
// console.log("cameraData", cameraData) |
|
|
|
|
|
|
|
if (data.otherConfig) { |
|
|
|
let otherConfig = JSON.parse(data.otherConfig); |
|
|
|
// data.pictures = otherConfig.pictures || []; |
|
|
|
data.videoList = otherConfig.videoList || []; |
|
|
|
//data.videoList = otherConfig.videoList || ['https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4'] |
|
|
|
} |
|
|
|
const { downCamera, upCamera } = ((await getNearCameraNew(data.stakeMark))?.data || {});//新的上下游摄像头接口 |
|
|
|
data.downCamId = downCamera?.camId; |
|
|
|
data.upCamId = upCamera?.camId; |
|
|
|
data.videoType = "flv"; |
|
|
|
// if (data.otherConfig) { |
|
|
|
// let otherConfig = JSON.parse(data.otherConfig); |
|
|
|
// // data.pictures = otherConfig.pictures || []; |
|
|
|
// data.videoList = otherConfig.videoList || []; |
|
|
|
// //data.videoList = otherConfig.videoList || ['https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4'] |
|
|
|
// } |
|
|
|
|
|
|
|
this.detailDialogFormData = data; |
|
|
|
|
|
|
|