风险状况

This commit is contained in:
liuye
2022-10-12 09:27:13 +08:00
parent f23f8107b9
commit 36bb9858e5
2 changed files with 13 additions and 2 deletions

View File

@@ -18,7 +18,10 @@
</div>
<div class="item-flex">
<div class="label">风险状况</div>
<div class="value">{{$dict.getLabel('EP_registerPersonType', info.type)}}</div>
<div class="value" style="color:#f46;" v-if="info.riskDescList && info.riskDescList.length">
<span v-for="(item, index) in info.riskDescList" :key="index"><span v-if="index > 0">,</span>{{item}}</span>
</div>
<div class="value" v-else>无风险</div>
</div>
</div>
<div class="line-bg"></div>
@@ -87,6 +90,14 @@ export default {
if (res.code == 0) {
this.info = res.data
this.info.idNumberText = this.info.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
this.info.riskDescList = []
if(this.info.reportInfos && this.info.reportInfos.length) {
this.info.reportInfos.map((item) => {
if(item.riskDesc) {
this.info.riskDescList.push(item.riskDesc)
}
})
}
}
})
},

View File

@@ -18,7 +18,7 @@
</div>
<div class="item-flex">
<div class="label">风险状况</div>
<div class="value">{{$dict.getLabel('EP_registerPersonType', info.type)}}</div>
<div class="value" :style="info.riskDesc ? 'color:#f46;' : ''">{{info.riskDesc || '无风险'}}</div>
</div>
</div>
<div class="line-bg"></div>