You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<view class="cabin-query-box">
|
|
|
|
<query v-if="show == 'query'" @fromData="getFromData"></query>
|
|
|
|
<history v-else :fromData="fromData" @reset="resetFun"></history>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import query from '@/pages/manifest/cabinQuery/components/query.vue'
|
|
|
|
import history from '@/pages/manifest/cabinQuery/components/history.vue'
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
query,
|
|
|
|
history,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
show: 'query',
|
|
|
|
fromData: {},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
getFromData(data){
|
|
|
|
this.fromData = data;
|
|
|
|
this.show = 'history';
|
|
|
|
},
|
|
|
|
resetFun(){
|
|
|
|
this.show = 'query'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
.cabin-query-box{
|
|
|
|
height:100vh;
|
|
|
|
}
|
|
|
|
</style>
|