【关于个险渠道协同产品专区系统开发需求的申请】如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品

This commit is contained in:
liyuetong
2022-01-14 17:25:07 +08:00
parent 20c718ef2a
commit e3d20636b0
4 changed files with 36 additions and 14 deletions

View File

@@ -200,13 +200,21 @@ export default {
}
this.list = resultData.content.mainRiskDTOS
//------------------------专为惠企写死--begin---------------//
if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
// if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
// this.result = this.list.find(v => {
// return v.riskProductCode == 'GFRS_M0040'
// })
// }
// ------------------------专为惠企写死--end---------------//
//如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
if (this.list.length > 0) {
console.log(localStorage.productCodeChooseFromList)
this.result = this.list.find(v => {
return v.riskProductCode == 'GFRS_M0040'
return v.riskProductCode == localStorage.productCodeChooseFromList
})
}
// ------------------------专为惠企写死--end---------------//
if (this.list.length == 0) {
this.$dialog({ message: '暂无可选产品!' }).then(() => {
this.$jump({
@@ -258,12 +266,19 @@ export default {
}
this.list = resultData.mainRiskDTOS
//------------------------专为惠企写死--begin---------------//
if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
// if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
// this.result = this.list.find(v => {
// return v.riskProductCode == 'GFRS_M0040'
// })
// }
// ------------------------专为惠企写死--end---------------//
// 如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
if (this.list.length > 0) {
console.log(localStorage.productCodeChooseFromList)
this.result = this.list.find(v => {
return v.riskProductCode == 'GFRS_M0040'
return v.riskProductCode == localStorage.productCodeChooseFromList
})
}
// ------------------------专为惠企写死--end---------------//
if (this.list.length == 0) {
this.$dialog({ message: '暂无可选产品!' }).then(() => {