|
|
@ -65,7 +65,7 @@ import request from "@/utils/request"; |
|
|
|
import { Message } from "element-ui"; |
|
|
|
import { Loading } from 'element-ui'; |
|
|
|
import { WarningType as warningTypeMapping, WarningSubclass as warningSubclassTypeMapping } from "@screen/utils/enum.js" |
|
|
|
|
|
|
|
import { getNearCameraNew } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js" |
|
|
|
|
|
|
|
const warningSourceMapping = { |
|
|
|
1: '视频AI', |
|
|
@ -261,7 +261,7 @@ export default { |
|
|
|
}, |
|
|
|
firstBtnClick(id) { |
|
|
|
console.log("id", id); |
|
|
|
if (this.activeName == '-1') { //除了 感知事件外的 事件专题 均须处理 |
|
|
|
if (this.activeName == '-1') { |
|
|
|
request({ |
|
|
|
url: `/perceivedEvents/warning/getWarningById`,//感知事件 |
|
|
|
method: "post", |
|
|
@ -297,7 +297,7 @@ export default { |
|
|
|
}); |
|
|
|
} else { |
|
|
|
request({ |
|
|
|
url: `/dc/system/event/${id}`, |
|
|
|
url: `/dc/system/event/${id}`,//交通事件 |
|
|
|
method: "get", |
|
|
|
}).then((result) => { |
|
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
@ -305,11 +305,15 @@ export default { |
|
|
|
data.stringDirection = gzDirectionMapping[data.direction] || data.direction; |
|
|
|
data.startTime = data?.occurrenceTime || ''; |
|
|
|
|
|
|
|
|
|
|
|
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 || []; |
|
|
|
//data.videoList = otherConfig.videoList || ['https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4'] |
|
|
|
} |
|
|
|
|
|
|
|