Files
dvcp_v2_webapp/project/xumu/AppClaimApply/AppClaimApply.vue

36 lines
687 B
Vue
Raw Normal View History

<script>
import add from "./add.vue";
import list from "./list.vue";
export default {
name: "AppClaimApply",
label: "理赔申请",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
currentPage() {
let { hash } = this.$route
return ["#claim", "#add"].includes(hash) ? add : list
}
},
created() {
this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety", "productType")
},
}
</script>
<template>
<section class="AppClaimApply">
<component :is="currentPage" v-bind="$props" />
</section>
</template>
<style scoped lang="scss">
.AppClaimApply {
height: 100%;
}
</style>