Browse Source

update echart resize

develop
mbp 2 months ago
parent
commit
6550e5be6f
  1. 3
      ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/UserArea.vue
  2. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/index.vue

3
ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/UserArea.vue

@ -113,6 +113,9 @@ export default {
}, },
}, },
}, },
created() {
this.getUser();
},
methods: { methods: {
...mapMutations("menu", ["openRecent", "closeRecent"]), ...mapMutations("menu", ["openRecent", "closeRecent"]),
onSwitchRecent(){ onSwitchRecent(){

5
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/index.vue

@ -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();
} }
} }

Loading…
Cancel
Save