Browse Source

BI-81001 fix: 修正年季度控件错误提示

es6
windy 4 years ago
parent
commit
916029f75e
  1. 6
      src/widget/yearquarter/card.dynamic.yearquarter.js

6
src/widget/yearquarter/card.dynamic.yearquarter.js

@ -8,7 +8,7 @@
BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-year-month-card"
baseCls: "bi-year-quarter-card"
},
render: function () {
@ -78,7 +78,7 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, {
case BI.DynamicDateCard.TYPE.YEAR:
valueMap.year = (value.offset === 0 ? -value.value : +value.value);
break;
case BI.DynamicDateCard.TYPE.MONTH:
case BI.DynamicDateCard.TYPE.QUARTER:
valueMap.quarter = (value.offset === 0 ? -value.value : +value.value);
break;
default:
@ -108,7 +108,7 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, {
},
setValue: function (v) {
v = v || {year: 0, month: 0};
v = v || {year: 0, quarter: 0};
this.year.setValue(this._createValue(BI.DynamicDateCard.TYPE.YEAR, v.year));
this.quarter.setValue(this._createValue(BI.DynamicDateCard.TYPE.QUARTER, v.quarter));
},

Loading…
Cancel
Save