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

页面修改

parent 0976e51e
...@@ -114,7 +114,6 @@ ...@@ -114,7 +114,6 @@
endTime: "", endTime: "",
empList: [], empList: [],
top_Check: 1, top_Check: 1,
}, },
dateList: [], dateList: [],
dataList: [], dataList: [],
...@@ -283,13 +282,42 @@ ...@@ -283,13 +282,42 @@
MarketCreateType(this.msg).then(res => { MarketCreateType(this.msg).then(res => {
this.loading = false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
this.allData = res.Data; var tempData = res.Data;
this.dataList = this.allData.customerDataList; if (tempData) {
this.dataList.forEach(x => { 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.VisitingRate = this.getStatical(x.VisitCount, x.ClueCount)
x.ContractRate = this.getStatical(x.OrderCount, x.VisitCount) 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;
}
}); });
}, },
//获取员工列表 //获取员工列表
......
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