|
@@ -651,6 +651,7 @@ export default {
|
|
|
// this.xAxisRange = ['01-01','12-31']
|
|
|
this.SeasonExtraConfig.XStartDate = '01-01'
|
|
|
this.SeasonExtraConfig.XEndDate = '12-31'
|
|
|
+ this.SeasonExtraConfig.JumpYear=0
|
|
|
this.isSpanYear=false
|
|
|
this.isSpanYearDisable=false
|
|
|
this.SeasonExtraConfig.ChartLegend=[]
|
|
@@ -664,30 +665,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 横轴显示范围改变
|
|
|
- // xAxisRangeChange(date){
|
|
|
- // console.log(date);
|
|
|
- // if(date && date.length>0){
|
|
|
- // // console.log(date[0],date[1]);
|
|
|
- // let xStartDate = date[0]
|
|
|
- // let xEndDate = date[1]
|
|
|
- // if(new Date(`2023-${xStartDate}`) > new Date(`2023-${xEndDate}`) ||
|
|
|
- // new Date(`2023-${xStartDate}`) == new Date(`2023-${xEndDate}`)){
|
|
|
- // // 开始日期 >= 结束日期 跨年
|
|
|
- // this.isSpanYear=true
|
|
|
- // this.isSpanYearDisable=true
|
|
|
- // }else{
|
|
|
- // this.isSpanYearDisable=false
|
|
|
- // }
|
|
|
- // // this.xAxisRange = [xStartDate,xEndDate]
|
|
|
- // this.SeasonExtraConfig.XStartDate = xStartDate
|
|
|
- // this.SeasonExtraConfig.XEndDate = xEndDate
|
|
|
- // this.SeasonExtraConfig.JumpYear = this.isSpanYear?1:0
|
|
|
- // this.getPreviewSplineInfo()
|
|
|
- // }else{
|
|
|
- // this.isSpanYearDisable=false
|
|
|
- // }
|
|
|
- // },
|
|
|
- // 横轴显示范围改变
|
|
|
xAxisChange(date){
|
|
|
if(this.SeasonExtraConfig.XStartDate && this.SeasonExtraConfig.XEndDate){
|
|
|
if(new Date(`2023-${this.SeasonExtraConfig.XStartDate}`) > new Date(`2023-${this.SeasonExtraConfig.XEndDate}`) ||
|