From a9d2452c44a9284b6bdd9cb7a98dec49180de48c Mon Sep 17 00:00:00 2001 From: "bai.jinyan" Date: Tue, 24 Aug 2021 13:04:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E7=BB=A9=E6=8A=A5=E8=A1=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E6=A0=B9=E6=8D=AEtab=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=98=A0=E5=B0=84=E6=95=B0=E6=8D=AE--=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=BA=EF=BC=9A=E7=99=BD=E9=87=91=E5=B2=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/report/reportList.vue | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/views/ebiz/report/reportList.vue b/src/views/ebiz/report/reportList.vue index a4f40318b..bf9d7cbc7 100644 --- a/src/views/ebiz/report/reportList.vue +++ b/src/views/ebiz/report/reportList.vue @@ -94,19 +94,27 @@ export default { loadingType: 'spinner', message: '加载中……' }) + let that = this reportList(data).then(res => { - this.$toast.clear() + that.$toast.clear() if (res.result == '0') { console.log(res) - this.reportList = res.content - this.list = res.content[this.active] - if (this.list.insertDate == null && this.list.insertTime == null) { - this.time = '--' + that.reportList = res.content + for (let item of that.reportList) { + if (item.salechnlName === that.title) { + that.list = item + } + } + if (!that.list) { + that.list = res.content[this.active] + } + if (that.list.insertDate == null && that.list.insertTime == null) { + that.time = '--'; } else { - this.time = this.list.insertDate + ' ' + this.list.insertTime + that.time = that.list.insertDate + ' ' + that.list.insertTime; } } else { - this.$toast(res.resultMessage) + that.$toast(res.resultMessage) } }) }, @@ -118,7 +126,7 @@ export default { } let name = '' let data = { - resultsName: this.title, + resultsName: this.title=='银保'?'银代':this.title, resultsType: val } if (val == '2') { @@ -165,7 +173,7 @@ export default { if (title == '健康险') { this.title = '团险' } else if (title == '银保') { - this.title = '银代' + this.title = '银保' } else { this.title = title } @@ -183,7 +191,6 @@ export default { riskName: null } for (let item of this.reportList) { - console.log(item) if (item.salechnlName === this.title) { this.list = item }