mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 03:56:44 +08:00
业绩报表修改,根据tab名称映射数据--提交人:白金岩
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user