|
@@ -23,11 +23,12 @@
|
|
|
</div>
|
|
|
<div class="lf-container">
|
|
|
<div class="video-container">
|
|
|
- <div class="item" v-for="(item,index) in dataList" :key="index" @click="showVideo(item)">
|
|
|
- <video src="https://www.runoob.com/try/demo_source/movie.mp4" poster="./images/video.png">
|
|
|
+ <div class="item" v-for="(item,index) in dataList" :key="index" @click="showVideo(item)" :data="item">
|
|
|
+ <!-- <video src="https://www.runoob.com/try/demo_source/movie.mp4" poster="./images/video.png">
|
|
|
<source src="movie.mp4" type="video/mp4">
|
|
|
- </video>
|
|
|
- <p>{{NumConvertLM(item.goafOrebelt)}}-{{item.goafOrebody}}-{{item.goafOreheight}}-{{item.goafName}}</p>
|
|
|
+ </video> -->
|
|
|
+ <HkwsVideo :ref="'HkwsVideo'+item.goafDevId"></HkwsVideo>
|
|
|
+ <p style="cursor:pointer;">{{NumConvertLM(item.goafOrebelt)}}-{{item.goafOrebody}}-{{item.goafOreheight}}-{{item.goafName}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="el-pagination-wrap">
|
|
@@ -139,6 +140,18 @@ import { NumConvertLM } from '@/utils'
|
|
|
const dataList = data.filter((item) => item.goafDevTypename.includes('摄像头'))
|
|
|
this.dataList = dataList.filter((item, index) => index >= start && index < end)
|
|
|
this.total = dataList.length
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.dataList.forEach((item)=>{
|
|
|
+ this.$refs['HkwsVideo'+item.goafDevId][0].loadData({
|
|
|
+ streamServeUrl:item.goafDevSocketAddr,
|
|
|
+ szIP: item.goafDevIp, // protocol ip
|
|
|
+ szPort: item.goafDevPort, // protocol port
|
|
|
+ szUsername:item.goafDevAccount, // device username
|
|
|
+ szPassword: item.goafDevPwd, // device password
|
|
|
+ state:false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
showVideo(item){
|
|
@@ -264,8 +277,9 @@ import { NumConvertLM } from '@/utils'
|
|
|
bottom: 0;
|
|
|
background-color: rgba(222, 229, 236, 0.45);
|
|
|
.video-dialog-container{
|
|
|
- width: 654px;
|
|
|
- height: 535px;
|
|
|
+ width: 860px;
|
|
|
+ height: 70%;
|
|
|
+ max-width: 80%;
|
|
|
background-color: #051933;
|
|
|
border-radius: 20px;
|
|
|
margin: 20px auto;
|