qa-regulatory-gwj-vue/src/views/longtermvehicle/vehiclemessage/index.vue

43 lines
834 B
Vue

<template>
<div>
<IndexList v-show="activeName=='IndexList'" ref="list" />
<IndexView v-if="activeName=='IndexView'" />
<!-- <List v-show="activeName==='List'" />-->
<Record v-if="activeName==='Record'" />
</div>
</template>
<script>
import IndexList from './components/indexList'
import IndexView from './components/index_view'
// import List from './components/list'
import Record from './components/record'
export default {
components: {
IndexList,
IndexView,
// List,
Record
},
data() {
return {
activeName: 'IndexList',
INSPECTION_ID: '',
LICENCE_NO: '',
indexVal: ''
}
},
watch: {
activeName(newValue, oldValue) {
if (newValue == 'IndexList') {
this.$refs.list.getQuery()
}
}
}
}
</script>
<style scoped>
</style>