|
|
|
@ -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)); |
|
|
|
|
}, |
|
|
|
|