qa-regulatory-gwj-vue/src/views/firefighting/firecontrol/firecontrolroom/index.vue

34 lines
487 B
Vue

<template>
<!-- <component :is="activeName" />-->
<div>
<List v-show="activeName=='List'" ref="list" />
</div>
</template>
<script>
import List from './components/list.vue'
export default {
components: {
List: List
},
data() {
return {
activeName: 'List'
}
},
watch: {
activeName(val) {
if (val == 'List') {
this.$refs.list.getList()
this.$refs.list.getTreeList()
}
}
}
}
</script>
<style scoped>
</style>