41 lines
762 B
Vue
41 lines
762 B
Vue
<template>
|
|
<div>
|
|
<ListCount v-if="activeName === 'ListCount'" ref="ListCount" />
|
|
<List v-if="activeName === 'List'" ref="List" />
|
|
<Add v-if="activeName === 'AddOrEdit'" ref="AddOrEdit" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ListCount from './components/listCount.vue'
|
|
import List from './components/list.vue'
|
|
import Add from './components/addOrEdit.vue'
|
|
|
|
export default {
|
|
components: {
|
|
ListCount: ListCount,
|
|
Add: Add,
|
|
List: List
|
|
},
|
|
data() {
|
|
return {
|
|
activeName: 'ListCount',
|
|
id: '',
|
|
corpInfoId: ''
|
|
}
|
|
},
|
|
watch: {
|
|
activeName(val) {
|
|
if (val === 'List') {
|
|
this.$nextTick(() => {
|
|
this.$refs.List.searchList()
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
</style>
|