|
|
|
@ -1,5 +1,5 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="realTime bg-white">
|
|
|
|
<div class="realTime bg-white" :style="{width : tabsWidth}">
|
|
|
|
<a-tabs default-active-key="1" slot="headerContent" v-model="tabKey" @change="tabsChange" padding:10px>
|
|
|
|
<a-tabs default-active-key="1" slot="headerContent" v-model="tabKey" @change="tabsChange" padding:10px>
|
|
|
|
<a-tab-pane :key="item.streetId.toString()" :tab="item.streetName" v-for="item in realTimeListData"></a-tab-pane>
|
|
|
|
<a-tab-pane :key="item.streetId.toString()" :tab="item.streetName" v-for="item in realTimeListData"></a-tab-pane>
|
|
|
|
</a-tabs>
|
|
|
|
</a-tabs>
|
|
|
|
@ -84,7 +84,7 @@ export default {
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
modelData: [],
|
|
|
|
modelData: [],
|
|
|
|
clientHeight: 0,
|
|
|
|
clientHeight: 0,
|
|
|
|
|
|
|
|
tabsWidth:0,
|
|
|
|
players: [],
|
|
|
|
players: [],
|
|
|
|
zoomSubUrl:require('@/assets/sub-icon.png'),
|
|
|
|
zoomSubUrl:require('@/assets/sub-icon.png'),
|
|
|
|
zoomAddUrl:require('@/assets/add-icon.png'),
|
|
|
|
zoomAddUrl:require('@/assets/add-icon.png'),
|
|
|
|
@ -117,7 +117,7 @@ export default {
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.getClientHeight()
|
|
|
|
this.getClientHeight()
|
|
|
|
this.getRealTimeList()
|
|
|
|
this.getRealTimeList()
|
|
|
|
|
|
|
|
this.getTabsWidth()
|
|
|
|
this.tabKey = sessionStorage.getItem('tabKey');
|
|
|
|
this.tabKey = sessionStorage.getItem('tabKey');
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -482,6 +482,11 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getTabsWidth(){
|
|
|
|
|
|
|
|
console.log('tab总长度')
|
|
|
|
|
|
|
|
console.log(this.$el)
|
|
|
|
|
|
|
|
this.tabsWidth = '82vw';
|
|
|
|
|
|
|
|
},
|
|
|
|
rightDownStop(event,id){
|
|
|
|
rightDownStop(event,id){
|
|
|
|
console.log('右下鼠标抬起')
|
|
|
|
console.log('右下鼠标抬起')
|
|
|
|
this.rightDownUrl=require('@/assets/right-down-icon.png')
|
|
|
|
this.rightDownUrl=require('@/assets/right-down-icon.png')
|
|
|
|
|