|
@@ -1163,29 +1163,7 @@ func (this *ChartInfoController) ChartInfoDetailV2() {
|
|
|
if calendar == "" {
|
|
|
calendar = "公历"
|
|
|
}
|
|
|
- switch dateType {
|
|
|
- case 1:
|
|
|
- startDate = "2000-01-01"
|
|
|
- case 2:
|
|
|
- startDate = "2010-01-01"
|
|
|
- case 3:
|
|
|
- startDate = "2015-01-01"
|
|
|
- case 4:
|
|
|
- startDate = "2021-01-01"
|
|
|
- case 5:
|
|
|
- startDate = startDate + "-01"
|
|
|
- endDate = endDate + "-01"
|
|
|
- case 6:
|
|
|
- startDate = startDate + "-01"
|
|
|
- case 7:
|
|
|
- startDate = "2018-01-01"
|
|
|
- case 8:
|
|
|
- startDate = "2019-01-01"
|
|
|
- case 9:
|
|
|
- startDate = "2020-01-01"
|
|
|
- case 11:
|
|
|
- startDate = "2022-01-01"
|
|
|
- }
|
|
|
+ startDate, endDate = utils.GetDateByDateType(dateType, startDate, endDate)
|
|
|
|
|
|
if chartType == 2 {
|
|
|
if seasonStartDate != "" {
|