<template>
|
<div>
|
<component :info="info" v-bind="$attrs" v-bind:is="componentName"></component>
|
</div>
|
</template>
|
<script>
|
export default {
|
name: 'sss',
|
props: {
|
/**
|
* 节点信息
|
* @example
|
* { "tabname": "借款人信息", "exist": "Y", "gray": "N", "visible": "Y" }
|
*/
|
info: {
|
type: Object,
|
required: true
|
},
|
isKeepAlive: {
|
type: Boolean,
|
default: true
|
}
|
},
|
computed: {
|
componentName(item) {
|
let { info } = this
|
let { tabname } = info
|
let tabComponent = null
|
|
if (tabname === '贷款信息') {
|
tabComponent = () => import('./tabsComponent/MalLoanInfo')
|
}
|
|
if (tabname === '历史邮寄信息') {
|
tabComponent = () => import('./tabsComponent/HistoryEmailInfo')
|
}
|
|
if (tabname === '历史电子邮件信息') {
|
tabComponent = () => import('./tabsComponent/HistoryElectronicsInfo')
|
}
|
|
if (tabname === '申请信息') {
|
tabComponent = () => import('./tabsComponent/MalApplyInfo')
|
}
|
|
if (tabname === '电子合同信息') {
|
tabComponent = () => import('./tabsComponent/EdocPrint')
|
}
|
|
if (tabname === '影像资料信息') {
|
tabComponent = () => import('./tabsComponent/MalImageMenuList')
|
}
|
|
return tabComponent
|
}
|
}
|
}
|
</script>
|
<style lang="postcss" scoped>
|
</style>
|