5 changed files with 305 additions and 2 deletions
@ -0,0 +1,183 @@ |
|||||
|
<template> |
||||
|
<Dialog v-model="obverseVisible" :title="dialogData._itemData && dialogData._itemData.title" width="650px"> |
||||
|
<div class="RoadNetworkFacilities"> |
||||
|
<div class="header"> |
||||
|
<Video class="video-stream" :pileNum="dialogData.stakeMark" rangeIndex="upCamera" :showHeader="false" /> |
||||
|
<Video class="video-stream" :pileNum="dialogData.stakeMark" rangeIndex="downCamera" :showHeader="false" /> |
||||
|
</div> |
||||
|
|
||||
|
<Descriptions labelWidth="72px" :list="list" :data="data" style="gap: 18px" column="7" /> |
||||
|
</div> |
||||
|
</Dialog> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import Dialog from "@screen/components/Dialog/index.vue"; |
||||
|
import Descriptions from "@screen/components/Descriptions.vue"; |
||||
|
// import { getRoadInfoByStakeMark, getProduct } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js" |
||||
|
import Video from "@screen/components/VideoMulti"; |
||||
|
|
||||
|
import request from "@/utils/request"; |
||||
|
import { dialogDelayVisible } from "./../mixin"; |
||||
|
|
||||
|
// 所有交通事件的详情 |
||||
|
export default { |
||||
|
name: "RoadNetworkFacilities", |
||||
|
mixins: [dialogDelayVisible], |
||||
|
components: { |
||||
|
Dialog, |
||||
|
Descriptions, |
||||
|
Video, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
activeName: "first", |
||||
|
deviceControlVisible: false, |
||||
|
data: { |
||||
|
deviceType: "行车诱导", |
||||
|
deviceStation: "k094+079", |
||||
|
roadName: "G35济泽高速", |
||||
|
direction: "1", |
||||
|
deviceState: "0", |
||||
|
deviceVendors: "XXX厂家", |
||||
|
}, |
||||
|
list: [ |
||||
|
// { |
||||
|
// label: "机构", |
||||
|
// key: "organizationName", |
||||
|
// gridColumn: "3", |
||||
|
// }, |
||||
|
{ |
||||
|
label: "高速名称", |
||||
|
key: "roadName", |
||||
|
gridColumn: "3", |
||||
|
}, |
||||
|
{ |
||||
|
label: "感知时间", |
||||
|
key: "occurrenceTime", |
||||
|
gridColumn: "3", |
||||
|
visible: () => this.isPerceived, |
||||
|
}, |
||||
|
{ |
||||
|
label: "桩号", |
||||
|
key: "stakeMark", |
||||
|
gridColumn: "3", |
||||
|
}, |
||||
|
{ |
||||
|
label: "事件源", |
||||
|
key: "stringEventSource", |
||||
|
gridColumn: "3", |
||||
|
}, |
||||
|
{ |
||||
|
label: "影响车道", |
||||
|
key: "lang", |
||||
|
enum: "LaneOccupancy", |
||||
|
gridColumn: "3", |
||||
|
}, |
||||
|
{ |
||||
|
label: "事件状态", |
||||
|
key: "eventState", |
||||
|
enum: "EventType", |
||||
|
gridColumn: "3", |
||||
|
}, |
||||
|
{ |
||||
|
label: "经/纬度", |
||||
|
key: "${longitude} / ${latitude}", |
||||
|
gridColumn: "5", |
||||
|
}, |
||||
|
{ |
||||
|
label: "发生时间", |
||||
|
key: "occurrenceTime", |
||||
|
gridColumn: "3", |
||||
|
}, |
||||
|
{ |
||||
|
label: "行驶方向", |
||||
|
key: "direction", |
||||
|
enum: "CameraDirectionEnum", |
||||
|
gridColumn: "3", |
||||
|
}, |
||||
|
// { |
||||
|
// label: "完结时间", |
||||
|
// key: "endTime", |
||||
|
// gridColumn: "3", |
||||
|
// }, |
||||
|
{ |
||||
|
label: "事件描述", |
||||
|
key: "description", |
||||
|
gridColumn: "5", |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
}, |
||||
|
async created() { |
||||
|
this.data = { ...this.dialogData }; |
||||
|
// request({ |
||||
|
// url: `/business/RoadNetworkFacilities/getEventInfo/${this.dialogData.id}`, |
||||
|
// method: "get", |
||||
|
// }) |
||||
|
// .then(({ code, data }) => { |
||||
|
// if (code != 200) return; |
||||
|
|
||||
|
// this.data = { ...data, ...this.data }; |
||||
|
// console.log("RoadNetworkFacilities", data); |
||||
|
// }) |
||||
|
// .catch((err) => { }); |
||||
|
}, |
||||
|
methods: { |
||||
|
handleClickTabs() { }, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.RoadNetworkFacilities { |
||||
|
width: 600px; |
||||
|
color: #fff; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
gap: 12px; |
||||
|
|
||||
|
.camera-video { |
||||
|
flex: 1.5; |
||||
|
} |
||||
|
|
||||
|
.header { |
||||
|
display: flex; |
||||
|
gap: 9px; |
||||
|
|
||||
|
>div.video-stream { |
||||
|
height: 210px; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.tabs { |
||||
|
flex: 1; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
|
||||
|
::v-deep { |
||||
|
.el-tabs__content { |
||||
|
flex: 1; |
||||
|
|
||||
|
.el-tab-pane { |
||||
|
height: 100%; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.bottom { |
||||
|
margin-top: 12px; |
||||
|
display: flex; |
||||
|
gap: 9px; |
||||
|
align-items: center; |
||||
|
justify-content: end; |
||||
|
|
||||
|
>div { |
||||
|
font-size: 16px; |
||||
|
padding: 6px 12px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
|
|
Loading…
Reference in new issue