+
+
+
@@ -43,9 +46,10 @@
import ListLiquidGasConfig from './components/listLiquidGasConfig'
import ListTubeConfig from './components/listTubeConfig'
import ListH2sConfig from './components/listH2sConfig'
+import ListWellcoverConfig from '@/views/deviceConfig/components/listWellCoverConfig'
export default {
name: 'DeviceConfig',
- components: { ListH2sConfig, ListTubeConfig, ListLiquidGasConfig, ListNoiseConfig, ListDigConfig, ListTempConfig, ListHarmfulConfig, ListGasConfig, ListLiquidConfig },
+ components: { ListWellcoverConfig, ListH2sConfig, ListTubeConfig, ListLiquidGasConfig, ListNoiseConfig, ListDigConfig, ListTempConfig, ListHarmfulConfig, ListGasConfig, ListLiquidConfig },
data() {
return {
activeName: 'liquid'
@@ -56,7 +60,9 @@
},
methods: {
handleClick(tab, event) {
- if (tab.name === 'liquid') {
+ if (tab.name === 'wellcover') {
+ this.$refs.wellcoveConfig.fetchData()
+ } else if (tab.name === 'liquid') {
this.$refs.liquidConfig.fetchData()
} else if (tab.name === 'harmful') {
this.$refs.harmfulConfig.fetchData()
@@ -72,13 +78,15 @@
this.$refs.liquidGasConfig.fetchData()
} else if (tab.name === 'tube') {
this.$refs.tubeConfig.fetchData()
- } else if (tab.name === 'tube') {
+ } else if (tab.name === 'h2s') {
this.$refs.h2sConfig.fetchData()
}
},
// 计算那个是当前第一个tab
caclActive() {
- if (hasPermission('/busConfig/liquidConfig/list')) {
+ if (hasPermission('/busConfig/wellcoverConfig/list')) {
+ this.activeName = 'liquid'
+ } else if (hasPermission('/busConfig/liquidConfig/list')) {
this.activeName = 'liquid'
} else if (hasPermission('/busConfig/gasConfig/list')) {
this.activeName = 'gas'