9 changed files with 157 additions and 25 deletions
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,106 @@ |
|||
<template> |
|||
<div class="video-analysis"> |
|||
<div class="videoSelect"> |
|||
<el-select placeholder="请选择视频" v-model="activeVideo" size="mini" style="width: 240px"> |
|||
<el-option |
|||
v-for="item in videoList" |
|||
:key="item.value" |
|||
:label="item.label" |
|||
:value="item.value" |
|||
/> |
|||
</el-select> |
|||
</div> |
|||
<el-tabs v-model="activeName" > |
|||
<el-tab-pane label="实时视频" name="realTime"> |
|||
<div class="videoBox"> |
|||
<video :src="videoUrl" v-if="videoUrl"></video> |
|||
<div v-else class="videoNull"> |
|||
<div class="videoContent"> |
|||
<img src="@/assets/image/videoNull.png"> |
|||
<span>暂无内容</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</el-tab-pane> |
|||
</el-tabs> |
|||
</div> |
|||
</template> |
|||
<script> |
|||
|
|||
export default { |
|||
props: { |
|||
resCode: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
activeName: 'realTime', |
|||
videoUrl: '', |
|||
activeVideo: '0', |
|||
videoList: [ |
|||
{ |
|||
label: 'SP0012', |
|||
value: '0', |
|||
}, |
|||
{ |
|||
value: 'Option2', |
|||
label: 'Option2', |
|||
}, |
|||
{ |
|||
value: 'Option3', |
|||
label: 'Option3', |
|||
}, |
|||
{ |
|||
value: 'Option4', |
|||
label: 'Option4', |
|||
}, |
|||
{ |
|||
value: 'Option5', |
|||
label: 'Option5', |
|||
}, |
|||
] |
|||
}; |
|||
}, |
|||
created() { |
|||
}, |
|||
methods: { |
|||
}, |
|||
}; |
|||
</script> |
|||
<style scoped lang="scss"> |
|||
.video-analysis { |
|||
.videoBox { |
|||
height: 558px; |
|||
video { |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
|||
.videoNull{ |
|||
width: 100%; |
|||
height: 100%; |
|||
background: #383838; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
.videoContent { |
|||
img { |
|||
width: 44px; |
|||
height: 35px; |
|||
margin-bottom: 8px; |
|||
} |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
color: rgba(255, 255, 255, 0.55); |
|||
} |
|||
} |
|||
} |
|||
.videoSelect { |
|||
position: absolute; |
|||
right: 0; |
|||
top: 5px; |
|||
} |
|||
} |
|||
</style> |
Loading…
Reference in new issue