From c26a786a84f4e51d85acb36673fffc6bb5a003aa Mon Sep 17 00:00:00 2001 From: yuweiqi Date: Thu, 6 Feb 2020 17:35:08 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=E5=BB=BA=E8=AE=AE=E4=B9=A6=E7=94=9F?= =?UTF-8?q?=E6=88=90pdf=E5=88=86=E4=BA=AB=E6=97=A0=E6=A0=87=E9=A2=98bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/proposal/Exhibition.vue | 13 ++++++++++++- src/views/ebiz/proposal/PDF.vue | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/views/ebiz/proposal/Exhibition.vue b/src/views/ebiz/proposal/Exhibition.vue index 2b7151335..54f5bd2c1 100644 --- a/src/views/ebiz/proposal/Exhibition.vue +++ b/src/views/ebiz/proposal/Exhibition.vue @@ -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) } }, //获取微信分享的标题 diff --git a/src/views/ebiz/proposal/PDF.vue b/src/views/ebiz/proposal/PDF.vue index 2115e5a63..068203bda 100644 --- a/src/views/ebiz/proposal/PDF.vue +++ b/src/views/ebiz/proposal/PDF.vue @@ -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) {