|
|
@@ -7,10 +7,10 @@
|
|
|
<div v-loading="loading" class="has-padding">
|
|
|
<div class="l-flex--row c-table__header">
|
|
|
<div class="l-flex__auto c-sibling-item">
|
|
|
- <el-checkbox-group v-model="checkList" @change="chechChange">
|
|
|
+ <!-- <el-checkbox-group v-model="checkList" @change="chechChange">
|
|
|
<el-checkbox label="视频回采" />
|
|
|
<el-checkbox label="模拟终端" />
|
|
|
- </el-checkbox-group>
|
|
|
+ </el-checkbox-group> -->
|
|
|
</div>
|
|
|
<div class="l-flex__none c-sibling-item">
|
|
|
<img
|
|
|
@@ -83,8 +83,6 @@ import {
|
|
|
import { createListOptions } from '@/utils'
|
|
|
import Videobox from './components/video.vue'
|
|
|
|
|
|
-// const CAMERA_URL = `${location.protocol === 'https:' ? 'wss' : 'ws'}://${process.env.VUE_APP_GATEWAY || location.host}${process.env.VUE_APP_CAMERA_PROXY}`
|
|
|
-
|
|
|
export default {
|
|
|
name: 'Back',
|
|
|
components: {
|
|
|
@@ -94,11 +92,10 @@ export default {
|
|
|
return {
|
|
|
checkList: [],
|
|
|
returnheight: '0px',
|
|
|
- rowNum: 24,
|
|
|
+ rowNum: 12,
|
|
|
returnList: createListOptions({
|
|
|
pageSize: 1
|
|
|
}),
|
|
|
- zoomnum: '1',
|
|
|
loading: false
|
|
|
}
|
|
|
},
|
|
|
@@ -113,16 +110,14 @@ export default {
|
|
|
icon_nine: this.rowNum === 8 ? require('@/assets/icon_nine_hover.svg') : require('@/assets/icon_nine.svg')
|
|
|
}
|
|
|
return result
|
|
|
+ },
|
|
|
+ zoomnum () {
|
|
|
+ return this.rowNum === 24 ? '1' : this.rowNum === 12 ? '.6' : '.4'
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- // this.svg_icon.icon_one = require('@/assets/icon_one_hover.svg')
|
|
|
this.getDevices()
|
|
|
- // this.getAuthCode()
|
|
|
},
|
|
|
- // beforeDestroy () {
|
|
|
- // unlisten(this.onMessage)
|
|
|
- // },
|
|
|
methods: {
|
|
|
getDevices () {
|
|
|
this.loading = true
|
|
|
@@ -131,6 +126,7 @@ export default {
|
|
|
options.error = false
|
|
|
options.loading = true
|
|
|
options.params.pageSize = this.rowNum === 24 ? 1 : this.rowNum === 12 ? 4 : 9
|
|
|
+ options.params.activate = 2
|
|
|
getDevices(options.params).then(({ data, totalCount }) => {
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
data[i].paused = true
|
|
|
@@ -165,37 +161,11 @@ export default {
|
|
|
}
|
|
|
this.returnList.params.pageNum = 1
|
|
|
this.rowNum = num
|
|
|
- this.zoomnum = num === 24 ? '1' : num === 12 ? '.6' : '.4'
|
|
|
this.getDevices()
|
|
|
},
|
|
|
chechChange (val) {
|
|
|
console.log(val)
|
|
|
}
|
|
|
- // getflv (deviceId) {
|
|
|
- // if (flvjs.isSupported()) {
|
|
|
- // // 创建一个flvjs实例
|
|
|
- // this.playerList[deviceId] = flvjs.createPlayer({
|
|
|
- // type: 'flv',
|
|
|
- // isLive: true,
|
|
|
- // hasAudio: false,
|
|
|
- // url: `${CAMERA_URL}/${deviceId}?authorization=${this.$keycloak.token}`
|
|
|
- // })
|
|
|
- // this.playerList[deviceId].on('error', (e) => {
|
|
|
- // console.log(e)
|
|
|
- // })
|
|
|
- // // 将实例挂载到video元素上面
|
|
|
- // this.playerList[deviceId].attachMediaElement(this.$refs[deviceId][0])
|
|
|
- // // player.currentTime = parseFloat(document.getElementsByName('seekpoint')[0].value);
|
|
|
- // try {
|
|
|
- // // 开始运行加载 只要流地址正常 就可以在h5页面中播放出画面了
|
|
|
- // this.playerList[deviceId].load()
|
|
|
- // this.playerList[deviceId].play()
|
|
|
- // } catch (error) {
|
|
|
- // console.log('连接websocker异常:' + error)
|
|
|
- // console.log(error)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },
|
|
|
}
|
|
|
}
|
|
|
</script>
|