- 在 AppClaimApply 和 AppClaimAudit 组件中添加 productType 字典加载 - 在 add.vue 组件中使用 productType 字典获取保险产品类型标签
36 lines
687 B
Vue
36 lines
687 B
Vue
<script>
|
|
import add from "./add.vue";
|
|
import list from "./list.vue";
|
|
|
|
export default {
|
|
name: "AppClaimAudit",
|
|
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", "insureType", "insureStatus", "category", "variety", "productType")
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<section class="AppClaimAudit">
|
|
<component :is="currentPage" v-bind="$props" />
|
|
</section>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
.AppClaimAudit {
|
|
height: 100%;
|
|
}
|
|
</style>
|