Browse Source

BI-94052 fix: 年季度check范围不对

es6
windy 3 years ago
parent
commit
3dc27635b2
  1. 2
      src/widget/yearquarter/trigger.yearquarter.js

2
src/widget/yearquarter/trigger.yearquarter.js

@ -69,7 +69,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {
if(BI.isEmptyString(month)) { 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; month = parseInt(v, 10) === BI.parseDateTime(o.min, "%Y-%X-%d").getFullYear() ? BI.parseDateTime(o.min, "%Y-%X-%d").getMonth() + 1 : 1;
} else { } 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]); return v === "" || (BI.isPositiveInteger(v) && !BI.checkDateVoid(v, month, 1, o.min, o.max)[0]);
} }

Loading…
Cancel
Save