空数据处理

This commit is contained in:
na.guo
2020-09-02 15:04:04 +08:00
parent ec0d8c86d4
commit aa025dc85c
3 changed files with 36 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ export default {
data() { data() {
return {} return {}
}, },
props: ['title', 'text', 'fontColor', 'size', 'dwidth'], props: ['title', 'text', 'fontColor', 'size', 'dwidth'],
name: 'cellLine', name: 'cellLine',
components: {}, components: {},
computed: {}, computed: {},

View File

@@ -0,0 +1,28 @@
<!-- -->
<template>
<div>
<template v-if="text && text != 0">
<van-cell :title="title" :value="text" />
</template>
<template v-else>
<van-cell :title="title" value="—" />
</template>
</div>
</template>
<script>
import Vue from 'vue'
import { Cell } from 'vant'
export default {
data() {
return {}
},
props: ['title', 'text'],
name: 'item',
components: {},
computed: {},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped></style>

View File

@@ -81,10 +81,11 @@
<!-- 续期信息 --> <!-- 续期信息 -->
<van-collapse-item title="续期交费信息" name="100" class="detail-title pb10"> <van-collapse-item title="续期交费信息" name="100" class="detail-title pb10">
<van-cell-group> <van-cell-group>
<van-cell title="交费方式" :value="renewalManage.payMode" /> <item title="交费方式" :text="renewalManage.payMode"></item>
<van-cell title="转账银行" :value="renewalManage.bankName" /> <item title="转账银行" :text="renewalManage.bankName"></item>
<van-cell title="转账账号" :value="renewalManage.bankAccNo" /> <item title="转账账号" :text="renewalManage.bankAccNo"></item>
<van-cell title="下次扣款日" :value="renewalManage.paytoDate" /> <item title="下次扣款日" :text="renewalManage.paytoDate"></item>
<van-cell title="下期扣款金额(元)" :value="renewalManage.xqprem | moneyFormat" /> <van-cell title="下期扣款金额(元)" :value="renewalManage.xqprem | moneyFormat" />
</van-cell-group> </van-cell-group>
</van-collapse-item> </van-collapse-item>
@@ -109,6 +110,7 @@ import { getAuthCode, autchCodeCheck } from '@/api/ebiz/sale/sale'
import { checkPhone } from '@/api/ebiz/customer/customer' import { checkPhone } from '@/api/ebiz/customer/customer'
import dataDictionary from '@/assets/js/utils/data-dictionary' //根据数据字典进行页面展示 import dataDictionary from '@/assets/js/utils/data-dictionary' //根据数据字典进行页面展示
import { formatAllRisk } from '@/assets/js/utils/formatRiskList' import { formatAllRisk } from '@/assets/js/utils/formatRiskList'
import item from './compontents/item'
export default { export default {
data() { data() {
return { return {
@@ -159,6 +161,7 @@ export default {
this.getPolicyDetail() this.getPolicyDetail()
}, },
components: { components: {
item,
[Collapse.name]: Collapse, [Collapse.name]: Collapse,
[CollapseItem.name]: CollapseItem, [CollapseItem.name]: CollapseItem,
[Cell.name]: Cell, [Cell.name]: Cell,