Commit f36ebe53 by wangzhihui

折线图

1 parent 0ddbc235
......@@ -130,20 +130,24 @@ export default {
data.forEach((item) => {
// let timeStr = item.startTime + "-" + item.endTime
xData.push(item.endTime)
yOutputData.push(item.personalOutput)
yOutputData.push(item.personalOutput ? item.personalOutput : 0)
// yOutputDataRate
yConversionData.push(item.conversionRate)
yAverageOrderValueData.push(item.averageOrderValue)
yConversionData.push(item.conversionRate ? item.conversionRate : 0)
yAverageOrderValueData.push(
item.averageOrderValue ? item.averageOrderValue : 0
)
})
} else {
//近四月
data.forEach((item) => {
// let timeStr = item.startTime + "-" + item.endTime
xData.unshift(item.endTime.substring(0, 7))
yOutputData.unshift(item.personalOutput)
yOutputData.unshift(item.personalOutput ? item.personalOutput : 0)
// yOutputDataRate
yConversionData.unshift(item.conversionRate)
yAverageOrderValueData.unshift(item.averageOrderValue)
yConversionData.unshift(item.conversionRate ? item.conversionRate : 0)
yAverageOrderValueData.unshift(
item.averageOrderValue ? item.averageOrderValue : 0
)
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!