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.

43 lines
723 B
Vue

2 years ago
<template>
<view class="cabin-query-box">
2 years ago
<query v-if="show == 'query'" @fromData="getFromData"></query>
<history v-else :fromData="fromData" @reset="resetFun"></history>
2 years ago
</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',
2 years ago
fromData: {},
2 years ago
}
},
watch: {
},
methods: {
2 years ago
getFromData(data){
this.fromData = data;
this.show = 'history';
},
resetFun(){
this.show = 'query'
}
2 years ago
}
}
</script>
<style lang="less">
.cabin-query-box{
height:100vh;
}
</style>