|
@@ -1454,8 +1454,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log("----")
|
|
|
- console.log(info)
|
|
|
if (chartType != 'pie') {
|
|
|
// x 轴
|
|
|
let xAxis = info.option.xAxis
|
|
@@ -1465,7 +1463,8 @@ export default {
|
|
|
let axisLabel = {};
|
|
|
axisLabel.rotate = 20;
|
|
|
xAxis.axisLabel = axisLabel
|
|
|
- xAxis.data = (reportChartItemList && reportChartItemList.length > 0) ? reportChartItemList[0].valueTimeList.split(",") : []
|
|
|
+ xAxis.data = (reportChartItemList && reportChartItemList.length > 0) ?
|
|
|
+ ((reportChartItemList[0].valueTimeList) ? reportChartItemList[0].valueTimeList.split(",") : []) : []
|
|
|
// xAxis.data = xAxis.data.slice(0, 7)
|
|
|
for (let i in reportChartItemList) {
|
|
|
let name = reportChartItemList[i].describe ? reportChartItemList[i].describe : reportChartItemList[i].itemName
|