diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index 44c099a..214afa9 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -46,7 +46,7 @@ { permission: '/gasdector/list-page', label: '可燃气体智能监测终端', name: 'gasdector', type: '101', comp: 'list-gasdector-data' }, { permission: '/pantilt/list-page', label: '激光甲烷遥测云台', name: 'pantilt', type: '21', comp: 'list-pantilt-data' }, { permission: '/hydrantdata/list-page', label: '消防栓防盗水监测仪', name: 'hydrant', type: '11', comp: 'list-hydrant-data' }, - { permission: '/wellliquiddata/list-page', label: '硫化氢浓度监测仪', name: 'H2S', type: '14', comp: 'list-H2S-data' }, + { permission: '/h2s/list-page', label: '硫化氢浓度监测仪', name: 'H2S', type: '14', comp: 'list-H2S-data' }, { permission: '/wellliquiddata/list-page', label: '井盖液位一体机', name: 'wellliquid', type: '13', comp: 'list-well-liquid-data' } ] // 所有tab列表 } @@ -79,6 +79,8 @@ mounted() { if (this.$route.query && this.$route.query.deviceType) { this.changeTab(this.$route.query.deviceType) + } else { + this.caclActive() } }, methods: { @@ -100,6 +102,7 @@ // 计算那个是当前第一个tab caclActive() { this.activeName = this.showTabList[0].name + console.log(this.showTabList[0].name) } } }