Browse Source

BI-17356 日期交互修改

es6
windy 7 years ago
parent
commit
ea110f4b11
  1. 26
      dist/_fineui.min.js
  2. 18
      dist/bundle.js
  3. 26
      dist/bundle.min.js
  4. 18
      dist/widget.js
  5. 18
      src/widget/dynamicdate/dynamicdate.card.js

26
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

18
dist/bundle.js vendored

@ -89817,10 +89817,26 @@ BI.shortcut("bi.down_list_popup", BI.DownListPopup);/**
if(value.length !== 0) {
self.workDayBox.setSelected(false);
}
var plainValue = {};
BI.each(self.resultPane.getAllButtons(), function (idx, button) {
var value = button.getValue();
if(BI.isNotNull(value.dateType)) {
plainValue[value.dateType] = {
value: value.value,
offset: value.offset
};
}
});
self.resultPane.populate(self._getParamJson(BI.map(self.checkgroup.getValue(), function (idx, v) {
return {
var obj = {
dateType: v
};
if(BI.has(plainValue, v)) {
obj.value = plainValue[v].value;
obj.offset = plainValue[v].offset;
}
return obj;
})));
self.position = BI.DynamicDateCard.OFFSET.CURRENT;
self.fireEvent("EVENT_CHANGE");

26
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

18
dist/widget.js vendored

@ -3173,10 +3173,26 @@ BI.shortcut("bi.down_list_popup", BI.DownListPopup);/**
if(value.length !== 0) {
self.workDayBox.setSelected(false);
}
var plainValue = {};
BI.each(self.resultPane.getAllButtons(), function (idx, button) {
var value = button.getValue();
if(BI.isNotNull(value.dateType)) {
plainValue[value.dateType] = {
value: value.value,
offset: value.offset
};
}
});
self.resultPane.populate(self._getParamJson(BI.map(self.checkgroup.getValue(), function (idx, v) {
return {
var obj = {
dateType: v
};
if(BI.has(plainValue, v)) {
obj.value = plainValue[v].value;
obj.offset = plainValue[v].offset;
}
return obj;
})));
self.position = BI.DynamicDateCard.OFFSET.CURRENT;
self.fireEvent("EVENT_CHANGE");

18
src/widget/dynamicdate/dynamicdate.card.js

@ -55,10 +55,26 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, {
if(value.length !== 0) {
self.workDayBox.setSelected(false);
}
var plainValue = {};
BI.each(self.resultPane.getAllButtons(), function (idx, button) {
var value = button.getValue();
if(BI.isNotNull(value.dateType)) {
plainValue[value.dateType] = {
value: value.value,
offset: value.offset
};
}
});
self.resultPane.populate(self._getParamJson(BI.map(self.checkgroup.getValue(), function (idx, v) {
return {
var obj = {
dateType: v
};
if(BI.has(plainValue, v)) {
obj.value = plainValue[v].value;
obj.offset = plainValue[v].offset;
}
return obj;
})));
self.position = BI.DynamicDateCard.OFFSET.CURRENT;
self.fireEvent("EVENT_CHANGE");

Loading…
Cancel
Save