- 在 AppInsuranceAudit 组件中加载 productType 字典 - 在 add 组件中使用 productType 字典显示投保产品名称 - 优化 add 组件中的表单布局
36 lines
699 B
Vue
36 lines
699 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", "productType")
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<section class="AppInsuranceAudit">
|
|
<component :is="currentPage" v-bind="$props" />
|
|
</section>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
.AppInsuranceAudit {
|
|
height: 100%;
|
|
}
|
|
</style>
|