Commit 65baba75 by wangzhihui

fixed

1 parent 02f95a94
......@@ -109,7 +109,8 @@ export default {
//获取员工列表
this.staffList = await this.getStaffInfoData()
this.handleTabClick(0)
this.handleTabClick(1)
this.staffItem = this.staffList[0]
},
//查询员工详情
findStoreEmployeePerformanceData() {
......
......@@ -125,14 +125,28 @@ export default {
yOutputData = [],
yConversionData = [],
yAverageOrderValueData = []
data.forEach((item) => {
// let timeStr = item.startTime + "-" + item.endTime
xData.push(item.endTime)
yOutputData.push(item.personalOutput)
// yOutputDataRate
yConversionData.push(item.conversionRate)
yAverageOrderValueData.push(item.averageOrderValue)
})
//近四周
if (this.activeIndex == 0) {
data.forEach((item) => {
// let timeStr = item.startTime + "-" + item.endTime
xData.push(item.endTime)
yOutputData.push(item.personalOutput)
// yOutputDataRate
yConversionData.push(item.conversionRate)
yAverageOrderValueData.push(item.averageOrderValue)
})
} else {
//近四月
data.forEach((item) => {
// let timeStr = item.startTime + "-" + item.endTime
xData.unshift(item.endTime.substring(0, 7))
yOutputData.unshift(item.personalOutput)
// yOutputDataRate
yConversionData.unshift(item.conversionRate)
yAverageOrderValueData.unshift(item.averageOrderValue)
})
}
this.xData = xData
this.yOutputData = yOutputData
this.yConversionData = yConversionData
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!