pull/141/head
孙萌 2024-04-12 17:14:01 +08:00
parent de7602f17c
commit 912b5821c1
4 changed files with 51 additions and 23 deletions

View File

@ -90,6 +90,10 @@ const routes = [
path: '/systemManage',
name: 'systemManage',
component: () => import('../views/page/systemManage.vue')
},{
path: '/manage',
name: 'manage',
component: () => import('../views/manage/index.vue')
}, {
path: '/control',
name: 'control',

View File

@ -25,7 +25,7 @@
</div>
</div>
<div class="index-content">
<div class="left collapse">
<div class="left collapse" v-if="routerNow!='manage'">
<el-collapse v-model="activeNames">
<template v-for="item, index in leftList">
<el-collapse-item :name="index + 1" :key="index" v-if="!item.isRouter">
@ -50,6 +50,9 @@
</el-collapse>
</div>
<div class="left collapse" v-else>
管理
</div>
<div class="right">
<router-view v-if="!loading"></router-view>
</div>
@ -76,7 +79,7 @@ export default {
{ name: '数据分析', router: 'dataAnalysis', index: 1, routerList: ['dataAnalysis'], img: require('../assets/image/header-img4.png') },
// { name: '', router: '', routerList: [], img: require('../assets/image/header-img5.png') },
//systemManage systemManage
{ name: '管理', router: '', routerList: [''], img: require('../assets/image/header-img6.png') },
{ name: '管理', router: 'manage', routerList: ['manage'], img: require('../assets/image/header-img6.png') },
{ name: '大数据', router: 'largeScreen', routerList: ['largeScreen'], img: require('../assets/image/header-img8.png') }
],

View File

@ -0,0 +1,19 @@
<template>
<div class="manage-index">
管理
</div>
</template>
<script>
export default {
data(){
return {}
},
mounted(){},
methods:{},
}
</script>
<style lang="scss">
</style>

View File

@ -81,8 +81,8 @@
<div class="left-view" v-if="deviceName != 30">
<div ref="monitor" class="monitor" id="monitor">
<!-- <video ref="videoPlayer" class="video-js" id="video-js"></video> -->
<img v-if="imgUrl" style="width: 100%;height: 100%;" :src="imgUrl" alt="">
<div v-else ref="videoPlayer" class="video-js" id="video-js"></div>
<img style="width: 100%;height: 100%;" :src="imgUrl" alt="">
<!-- <div v-else ref="videoPlayer" class="video-js" id="video-js"></div> -->
</div>
</div>
<div class="right" id="realTime-line"></div>
@ -1024,21 +1024,22 @@ export default {
cameraid: nowDevice.cameraSerialNumber,
channelid: nowDevice.cameraChannelNumber
}
this.imgUrl = nowDevice.hls
//
// var data2 = {
// cameraid: 'L18357958',
// channelid: '1'
// }
if (!this.player) {
this.api.getGethls(data2).then(res => {
if (res.data.code == 200) {
this.url = res.data.data.ezopen
this.createVideoNew(res.data.data.accesstoken)
} else {
this.imgUrl = nowDevice.hls
}
})
// this.api.getGethls(data2).then(res => {
// if (res.data.code == 200) {
// this.url = res.data.data.ezopen
// this.createVideoNew(res.data.data.accesstoken)
// } else {
// this.imgUrl = nowDevice.hls
// }
// })
}
} else if (this.deviceName == 10) {
@ -1143,22 +1144,23 @@ export default {
cameraid: nowDevice.cameraSerialNumber,
channelid: nowDevice.cameraChannelNumber
}
this.imgUrl = nowDevice.hls
//
// var data2 = {
// cameraid: 'L18357958',
// channelid: '1'
// }
if (!this.player) {
this.api.getGethls(data2).then(res => {
// console.log(res.data, 11);
if (res.data.code == 200) {
this.url = res.data.data.ezopen
this.createVideoNew(res.data.data.accesstoken)
} else {
this.imgUrl = nowDevice.hls
}
})
// this.imgUrl = nowDevice.hls
// this.api.getGethls(data2).then(res => {
// // console.log(res.data, 11);
// if (res.data.code == 200) {
// this.url = res.data.data.ezopen
// this.createVideoNew(res.data.data.accesstoken)
// } else {
// this.imgUrl = nowDevice.hls
// }
// })
}
} else if (this.deviceName == 30) {
this.api.getControlRtDatastation(formData).then(res => {