From 2675d19afd68d5f281fddc0e77aeec0daff523a0 Mon Sep 17 00:00:00 2001 From: iapyang Date: Wed, 30 Dec 2020 11:34:31 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-46261=20fix:=20=E5=B9=B4=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E8=8C=83=E5=9B=B4=E6=A0=A1=E9=AA=8C=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=B5=8B=E5=80=BC=E4=B8=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=B9=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/date/calendar/popup.year.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/widget/date/calendar/popup.year.js b/src/widget/date/calendar/popup.year.js index ad5599c2a..c77471bc9 100644 --- a/src/widget/date/calendar/popup.year.js +++ b/src/widget/date/calendar/popup.year.js @@ -131,14 +131,11 @@ BI.YearPopup = BI.inherit(BI.Widget, { var endDate = BI.parseDateTime(o.max, "%Y-%X-%d"); if (BI.checkDateVoid(v, 1, 1, BI.print(BI.getDate(startDate.getFullYear(), 0, 1), "%Y-%X-%d"), BI.print(BI.getDate(endDate.getFullYear(), 0, 1), "%Y-%X-%d"))[0]) { v = BI.getDate().getFullYear(); - this.selectedYear = ""; - this.navigation.setSelect(BI.YearCalendar.getPageByYear(v)); - this.navigation.setValue(""); - } else { - this.selectedYear = v; - this.navigation.setSelect(BI.YearCalendar.getPageByYear(v)); - this.navigation.setValue(v); } + + this.selectedYear = v; + this.navigation.setSelect(BI.YearCalendar.getPageByYear(v)); + this.navigation.setValue(v); } }); BI.YearPopup.EVENT_CHANGE = "EVENT_CHANGE";