|
@@ -566,11 +566,14 @@ const setSeasonOptions = (data:any) => {
|
|
|
}:{},
|
|
|
...predict_params
|
|
|
};
|
|
|
- const data_array = _.cloneDeep(j.DataList);
|
|
|
+ const data_array = _.cloneDeep(j.DataList)||[];
|
|
|
+ let dateRange=0
|
|
|
+ if(data_array.length>0){
|
|
|
+ dateRange = data_array[data_array.length-1].DataTimestamp - data_array[0].DataTimestamp
|
|
|
+ // 时间范围
|
|
|
+ maxDateRange=Math.max(maxDateRange,dateRange)
|
|
|
+ }
|
|
|
|
|
|
- let dateRange = data_array[data_array.length-1].DataTimestamp - data_array[0].DataTimestamp
|
|
|
- // 时间范围
|
|
|
- maxDateRange=Math.max(maxDateRange,dateRange)
|
|
|
|
|
|
data_array &&
|
|
|
data_array.forEach((item: IParams) => {
|