|
@@ -238,7 +238,8 @@ export default {
|
|
|
}
|
|
|
myCharts.setOption(option)
|
|
|
myCharts.on('click', param => {
|
|
|
- let date = `${new Date().getFullYear() + param.name.slice(0, 2) + param.name.slice(3, 5)}`
|
|
|
+ const currentDate = this.energyDataList[param.dataIndex].date.slice(0, 4);
|
|
|
+ let date = `${currentDate + param.name.slice(0, 2) + param.name.slice(3, 5)}`;
|
|
|
this.$router.push(`/evaluate/evTwoLevelMenu/${date}/${param.seriesName}`)
|
|
|
})
|
|
|
}
|