36 lines
681 B
Vue
36 lines
681 B
Vue
<script>
|
|
import add from "./add.vue";
|
|
import list from "./list.vue";
|
|
|
|
export default {
|
|
name: "AppInsuranceAudit",
|
|
label: "投保审批",
|
|
props: {
|
|
instance: Function,
|
|
dict: Object,
|
|
permissions: Function
|
|
},
|
|
computed: {
|
|
currentPage() {
|
|
let {hash} = this.$route
|
|
return ["#add", "#audit"].includes(hash) ? add : list
|
|
}
|
|
},
|
|
created() {
|
|
this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety")
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<section class="AppInsuranceAudit">
|
|
<component :is="currentPage" v-bind="$props"/>
|
|
</section>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
.AppInsuranceAudit {
|
|
height: 100%;
|
|
}
|
|
</style>
|