From 3dc27635b265d2bb2b5c1bf509c05770a0ca8c78 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 14 Sep 2021 17:37:07 +0800 Subject: [PATCH] =?UTF-8?q?BI-94052=20fix:=20=E5=B9=B4=E5=AD=A3=E5=BA=A6ch?= =?UTF-8?q?eck=E8=8C=83=E5=9B=B4=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/yearquarter/trigger.yearquarter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/yearquarter/trigger.yearquarter.js b/src/widget/yearquarter/trigger.yearquarter.js index 419e4b160..097d65110 100644 --- a/src/widget/yearquarter/trigger.yearquarter.js +++ b/src/widget/yearquarter/trigger.yearquarter.js @@ -69,7 +69,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, { if(BI.isEmptyString(month)) { month = parseInt(v, 10) === BI.parseDateTime(o.min, "%Y-%X-%d").getFullYear() ? BI.parseDateTime(o.min, "%Y-%X-%d").getMonth() + 1 : 1; } else { - month = (v - 1) * 3 + 1; + month = (parseInt(month, 10) - 1) * 3 + 1; } return v === "" || (BI.isPositiveInteger(v) && !BI.checkDateVoid(v, month, 1, o.min, o.max)[0]); }