Commit 1dfd73ac authored by 黄奎's avatar 黄奎

页面修改

parent 0976e51e
......@@ -114,7 +114,6 @@
endTime: "",
empList: [],
top_Check: 1,
},
dateList: [],
dataList: [],
......@@ -283,12 +282,41 @@
MarketCreateType(this.msg).then(res => {
this.loading = false;
if (res.Code == 1) {
this.allData = res.Data;
var tempData = res.Data;
if (tempData) {
if (tempData.contractDataList) {
tempData.contractDataList.forEach(x => {
x.VisitingRate = this.getStatical(x.VisitCount, x.ClueCount)
x.ContractRate = this.getStatical(x.OrderCount, x.VisitCount)
})
}
if (tempData.customerDataList) {
tempData.customerDataList.forEach(x => {
x.VisitingRate = this.getStatical(x.VisitCount, x.ClueCount)
x.ContractRate = this.getStatical(x.OrderCount, x.VisitCount)
})
}
if (tempData.innerDataList) {
tempData.innerDataList.forEach(x => {
x.VisitingRate = this.getStatical(x.VisitCount, x.ClueCount)
x.ContractRate = this.getStatical(x.OrderCount, x.VisitCount)
})
}
if (tempData.schoolDataList) {
tempData.schoolDataList.forEach(x => {
x.VisitingRate = this.getStatical(x.VisitCount, x.ClueCount)
x.ContractRate = this.getStatical(x.OrderCount, x.VisitCount)
})
}
if (tempData.transDataList) {
tempData.transDataList.forEach(x => {
x.VisitingRate = this.getStatical(x.VisitCount, x.ClueCount)
x.ContractRate = this.getStatical(x.OrderCount, x.VisitCount)
})
}
}
this.allData = tempData;
this.dataList = this.allData.customerDataList;
this.dataList.forEach(x => {
x.VisitingRate = this.getStatical(x.VisitCount, x.ClueCount)
x.ContractRate = this.getStatical(x.OrderCount, x.VisitCount)
})
}
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment