mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 23:02:52 +08:00
[FIX]建议书生成pdf分享无标题bug
This commit is contained in:
@@ -220,6 +220,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
localStorage.setItem('pdfShareCode', '')
|
||||
document.body.style.backgroundColor = '#fff'
|
||||
setTimeout(() => {
|
||||
// 右上角的显示
|
||||
@@ -313,7 +314,7 @@ export default {
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
})
|
||||
localStorage.pdfShareCode = this.chooseProductCode[0]
|
||||
|
||||
}
|
||||
},
|
||||
//档位更换时
|
||||
@@ -379,6 +380,16 @@ export default {
|
||||
this.getWXTitle(this.insuredDTOs) //获取微信标题
|
||||
let active = this.insuredDTOs.length //默认展开项
|
||||
this.activeNames = [active]
|
||||
|
||||
this.insuredDTOs.forEach(item => {
|
||||
if (item.riskDTOLst && item.riskDTOLst.length > 0) {
|
||||
item.riskDTOLst.forEach(ele => {
|
||||
this.chooseProductCodes.push(ele.riskCode)
|
||||
})
|
||||
}
|
||||
})
|
||||
localStorage.pdfShareCode = this.chooseProductCodes[0]
|
||||
console.log('localStorage.pdfShareCodes == ', localStorage.pdfShareCodes)
|
||||
}
|
||||
},
|
||||
//获取微信分享的标题
|
||||
|
||||
@@ -31,6 +31,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log('localStorage.pdfShareCode =pdf = ', localStorage.pdfShareCode)
|
||||
let riskCode = localStorage.pdfShareCode
|
||||
dataDictionary.riskType.some(item => {
|
||||
if (item.code == riskCode) {
|
||||
|
||||
Reference in New Issue
Block a user