qa-prevention-gwj-vue/src/views/keyprojects/outsourced/index.vue

37 lines
587 B
Vue

<template>
<div>
<List v-show="activeName=='List'" ref="list" />
<Edit v-if="activeName=='Edit'" />
<Info v-if="activeName=='Info'" />
</div>
</template>
<script>
import List from './components/list'
import Edit from './components/edit'
import Info from './components/info'
export default {
components: {
List: List,
Edit: Edit,
Info: Info
},
data() {
return {
activeName: 'List'
}
},
watch: {
activeName(val) {
if (val == 'List') {
this.$refs.list.getQuery()
}
}
}
}
</script>
<style scoped>
</style>