Compare commits

..

No commits in common. "a5e76355355a44779a0ba30854e8e242e042b109" and "7636f663c2262254c36933df7f3f7870aa94b7fd" have entirely different histories.

4 changed files with 23 additions and 51 deletions

View File

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

View File

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

View File

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