|
@ -1,6 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="TrafficFlow"> |
|
|
<div class="TrafficFlow"> |
|
|
<el-tabs class="full_tab" v-model="activeName" @change="onTabChange"> |
|
|
<el-tabs class="full_tab" v-model="activeName" @tab-click="onTabChange"> |
|
|
<el-tab-pane label="感知事件分析" name="first" class="tab_con"> |
|
|
<el-tab-pane label="感知事件分析" name="first" class="tab_con"> |
|
|
<EventDetectionAnalysis ref="refAna" /> |
|
|
<EventDetectionAnalysis ref="refAna" /> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
@ -28,8 +28,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
onTabChange(e){ |
|
|
onTabChange(e){ |
|
|
console.log(e) |
|
|
if(e.index === '0'){ |
|
|
if(e === 'first'){ |
|
|
|
|
|
this.$refs.refAna.refresh(); |
|
|
this.$refs.refAna.refresh(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|