Commit 65baba75 by wangzhihui

fixed

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