feat(AppInsuranceAudit): 新增产品类型字典支持
- 在 AppInsuranceAudit 组件中加载 productType 字典 - 在 add 组件中使用 productType 字典显示投保产品名称 - 优化 add 组件中的表单布局
This commit is contained in:
@@ -12,19 +12,19 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
currentPage() {
|
||||
let {hash} = this.$route
|
||||
let { hash } = this.$route
|
||||
return ["#add", "#audit"].includes(hash) ? add : list
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety")
|
||||
this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety", "productType")
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="AppInsuranceAudit">
|
||||
<component :is="currentPage" v-bind="$props"/>
|
||||
<component :is="currentPage" v-bind="$props" />
|
||||
</section>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user