hotfix: 电子投保单详情页面报错

1. 修改that为this
This commit is contained in:
mengxiaolong
2020-11-23 11:39:33 +08:00
parent f3923bb8e4
commit f73365e85b

View File

@@ -120,9 +120,8 @@ export default {
}
},
created() {
let that = this
// 获取保单详情
that.getPolicyDetail()
this.getPolicyDetail()
},
components: {
[Collapse.name]: Collapse,
@@ -197,7 +196,7 @@ export default {
res.orderDTO.appntDTO.idType = '港澳台居民居住证'
break
}
that.appntDTO = res.orderDTO.appntDTO
this.appntDTO = res.orderDTO.appntDTO
res.orderDTO.insuredDTOs.map(item => {
item.riskDTOLst.map(it => {
if (it.insuYearFlag == 'Y') {
@@ -338,7 +337,7 @@ export default {
}
})
that.insuredDTOs = res.orderDTO.insuredDTOs
this.insuredDTOs = res.orderDTO.insuredDTOs
// 格式化
this.list = formatAllRisk(this.insuredDTOs[0].riskDTOLst)
} else {
@@ -362,7 +361,8 @@ export default {
this.$toast(problemResult.resultMessage)
}
} catch (error) {
this.$toast('网络异常,')
console.log(error)
this.$toast('网络异常')
}
},
mapOrderState(state) {