Browse Source

BI-95485 fix:日期时间动态面板增加校验

es6
Tangjinxia 3 years ago
parent
commit
7627156305
  1. 7
      src/widget/dynamicdatetime/dynamicdatetime.popup.js

7
src/widget/dynamicdatetime/dynamicdatetime.popup.js

@ -59,7 +59,12 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
listeners: [{
eventName: BI.TextButton.EVENT_CHANGE,
action: function () {
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE);
var type = self.dateTab.getSelect();
if (type === BI.DynamicDateCombo.Dynamic) {
self.dynamicPane.checkValidation(true) && self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE);
} else {
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE)
}
}
}]
}]],

Loading…
Cancel
Save