Files
dvcp_v2_webapp/project/xumu/AppSellAudit/AppSellAudit.vue

36 lines
665 B
Vue
Raw Normal View History

<script>
import add from "./add.vue";
import list from "./list.vue";
export default {
name: "AppSellAudit",
label: "出栏审核",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
currentPage() {
let {hash} = this.$route
return ["#audit", "#add"].includes(hash) ? add : list
}
},
created() {
this.dict.load("auditStatus", "loanProduct", "loanStatus", "category", "variety")
},
}
</script>
<template>
<section class="AppSellAudit">
<component :is="currentPage" v-bind="$props"/>
</section>
</template>
<style scoped lang="scss">
.AppSellAudit {
height: 100%;
}
</style>