业绩报表修改,根据tab名称映射数据--提交人:白金岩

This commit is contained in:
bai.jinyan
2021-08-24 13:04:00 +08:00
parent b847e26e7e
commit a9d2452c44

View File

@@ -94,19 +94,27 @@ export default {
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……' message: '加载中……'
}) })
let that = this
reportList(data).then(res => { reportList(data).then(res => {
this.$toast.clear() that.$toast.clear()
if (res.result == '0') { if (res.result == '0') {
console.log(res) console.log(res)
this.reportList = res.content that.reportList = res.content
this.list = res.content[this.active] for (let item of that.reportList) {
if (this.list.insertDate == null && this.list.insertTime == null) { if (item.salechnlName === that.title) {
this.time = '--' that.list = item
}
}
if (!that.list) {
that.list = res.content[this.active]
}
if (that.list.insertDate == null && that.list.insertTime == null) {
that.time = '--';
} else { } else {
this.time = this.list.insertDate + ' ' + this.list.insertTime that.time = that.list.insertDate + ' ' + that.list.insertTime;
} }
} else { } else {
this.$toast(res.resultMessage) that.$toast(res.resultMessage)
} }
}) })
}, },
@@ -118,7 +126,7 @@ export default {
} }
let name = '' let name = ''
let data = { let data = {
resultsName: this.title, resultsName: this.title=='银保'?'银代':this.title,
resultsType: val resultsType: val
} }
if (val == '2') { if (val == '2') {
@@ -165,7 +173,7 @@ export default {
if (title == '健康险') { if (title == '健康险') {
this.title = '团险' this.title = '团险'
} else if (title == '银保') { } else if (title == '银保') {
this.title = '银' this.title = '银'
} else { } else {
this.title = title this.title = title
} }
@@ -183,7 +191,6 @@ export default {
riskName: null riskName: null
} }
for (let item of this.reportList) { for (let item of this.reportList) {
console.log(item)
if (item.salechnlName === this.title) { if (item.salechnlName === this.title) {
this.list = item this.list = item
} }