|
|
@ -1,4 +1,4 @@ |
|
|
|
/*! time: 2021-1-21 19:30:24 */ |
|
|
|
/*! time: 2021-1-22 17:00:30 */ |
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ var installedModules = {}; |
|
|
|
/******/ var installedModules = {}; |
|
|
@ -44431,22 +44431,22 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
|
var valueMap = {}; |
|
|
|
var valueMap = {}; |
|
|
|
switch (value.dateType) { |
|
|
|
switch (value.dateType) { |
|
|
|
case BI.DynamicDateCard.TYPE.YEAR: |
|
|
|
case BI.DynamicDateCard.TYPE.YEAR: |
|
|
|
valueMap.year = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.year = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DynamicDateCard.TYPE.QUARTER: |
|
|
|
case BI.DynamicDateCard.TYPE.QUARTER: |
|
|
|
valueMap.quarter = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.quarter = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DynamicDateCard.TYPE.MONTH: |
|
|
|
case BI.DynamicDateCard.TYPE.MONTH: |
|
|
|
valueMap.month = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.month = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DynamicDateCard.TYPE.WEEK: |
|
|
|
case BI.DynamicDateCard.TYPE.WEEK: |
|
|
|
valueMap.week = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.week = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DynamicDateCard.TYPE.DAY: |
|
|
|
case BI.DynamicDateCard.TYPE.DAY: |
|
|
|
valueMap.day = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.day = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DynamicDateCard.TYPE.WORK_DAY: |
|
|
|
case BI.DynamicDateCard.TYPE.WORK_DAY: |
|
|
|
valueMap.workDay = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.workDay = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
@ -44516,7 +44516,7 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.workDayBox.isSelected()) { |
|
|
|
if(this.workDayBox.isSelected()) { |
|
|
|
var value = buttons[0].getValue(); |
|
|
|
var value = buttons[0].getValue(); |
|
|
|
valueMap.workDay = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.workDay = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
} |
|
|
|
} |
|
|
|
return valueMap; |
|
|
|
return valueMap; |
|
|
|
} |
|
|
|
} |
|
|
@ -44661,11 +44661,11 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, { |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.DynamicDateTrigger.EVENT_CONFIRM, |
|
|
|
eventName: BI.DynamicDateTrigger.EVENT_CONFIRM, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
|
|
|
|
if (self.combo.isViewVisible() || BI.isEqual(dateObj, dateStore)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
self.storeValue = self.trigger.getValue(); |
|
|
|
self.storeValue = self.trigger.getValue(); |
|
|
|
self.setValue(self.trigger.getValue()); |
|
|
|
self.setValue(self.trigger.getValue()); |
|
|
@ -45743,11 +45743,11 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.DynamicDateTimeTrigger.EVENT_CONFIRM, |
|
|
|
eventName: BI.DynamicDateTimeTrigger.EVENT_CONFIRM, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
|
|
|
|
if (self.combo.isViewVisible() || BI.isEqual(dateObj, dateStore)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
self.storeValue = self.trigger.getValue(); |
|
|
|
self.storeValue = self.trigger.getValue(); |
|
|
|
self.setValue(self.trigger.getValue()); |
|
|
|
self.setValue(self.trigger.getValue()); |
|
|
@ -66267,7 +66267,7 @@ BI.DynamicYearCard = BI.inherit(BI.Widget, { |
|
|
|
_checkDate: function (obj) { |
|
|
|
_checkDate: function (obj) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var date = BI.DynamicDateHelper.getCalculation({ |
|
|
|
var date = BI.DynamicDateHelper.getCalculation({ |
|
|
|
year: (obj.offset === 0 ? -obj.value : obj.value) |
|
|
|
year: (obj.offset === 0 ? -obj.value : +obj.value) |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return !BI.checkDateVoid(date.getFullYear(), date.getMonth() + 1, date.getDate(), o.min, o.max)[0]; |
|
|
|
return !BI.checkDateVoid(date.getFullYear(), date.getMonth() + 1, date.getDate(), o.min, o.max)[0]; |
|
|
@ -66301,7 +66301,7 @@ BI.DynamicYearCard = BI.inherit(BI.Widget, { |
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
var value = this.item.getValue(); |
|
|
|
var value = this.item.getValue(); |
|
|
|
return { |
|
|
|
return { |
|
|
|
year: (value.offset === 0 ? -value.value : value.value) |
|
|
|
year: (value.offset === 0 ? -value.value : +value.value) |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -67206,10 +67206,10 @@ BI.DynamicYearMonthCard = BI.inherit(BI.Widget, { |
|
|
|
var valueMap = {}; |
|
|
|
var valueMap = {}; |
|
|
|
switch (value.dateType) { |
|
|
|
switch (value.dateType) { |
|
|
|
case BI.DynamicDateCard.TYPE.YEAR: |
|
|
|
case BI.DynamicDateCard.TYPE.YEAR: |
|
|
|
valueMap.year = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.year = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DynamicDateCard.TYPE.MONTH: |
|
|
|
case BI.DynamicDateCard.TYPE.MONTH: |
|
|
|
valueMap.month = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.month = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
@ -67468,12 +67468,11 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, { |
|
|
|
self.fireEvent(BI.DynamicYearMonthCombo.EVENT_VALID); |
|
|
|
self.fireEvent(BI.DynamicYearMonthCombo.EVENT_VALID); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_CONFIRM, function () { |
|
|
|
this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_CONFIRM, function () { |
|
|
|
// 没看出来干啥的,先去掉
|
|
|
|
|
|
|
|
// if (self.combo.isViewVisible()) {
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
|
|
|
|
if (BI.isEqual(dateObj, dateStore)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
self.storeValue = self.trigger.getValue(); |
|
|
|
self.storeValue = self.trigger.getValue(); |
|
|
|
self.setValue(self.trigger.getValue()); |
|
|
|
self.setValue(self.trigger.getValue()); |
|
|
@ -68447,10 +68446,10 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, { |
|
|
|
var valueMap = {}; |
|
|
|
var valueMap = {}; |
|
|
|
switch (value.dateType) { |
|
|
|
switch (value.dateType) { |
|
|
|
case BI.DynamicDateCard.TYPE.YEAR: |
|
|
|
case BI.DynamicDateCard.TYPE.YEAR: |
|
|
|
valueMap.year = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.year = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BI.DynamicDateCard.TYPE.MONTH: |
|
|
|
case BI.DynamicDateCard.TYPE.MONTH: |
|
|
|
valueMap.quarter = (value.offset === 0 ? -value.value : value.value); |
|
|
|
valueMap.quarter = (value.offset === 0 ? -value.value : +value.value); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
@ -68693,12 +68692,11 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
self.combo.isViewVisible() && self.combo.hideView(); |
|
|
|
self.combo.isViewVisible() && self.combo.hideView(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM, function () { |
|
|
|
this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM, function () { |
|
|
|
// 没看出来干啥的,先去掉
|
|
|
|
|
|
|
|
// if (self.combo.isViewVisible()) {
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
var dateStore = self.storeTriggerValue; |
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
var dateObj = self.trigger.getKey(); |
|
|
|
|
|
|
|
if (BI.isEqual(dateObj, dateStore)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) { |
|
|
|
self.storeValue = self.trigger.getValue(); |
|
|
|
self.storeValue = self.trigger.getValue(); |
|
|
|
self.setValue(self.trigger.getValue()); |
|
|
|
self.setValue(self.trigger.getValue()); |
|
|
|