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 }