Browse Source

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

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit 'e94382eea4fa7e49a71b36bcab98c2a0cfdbd145':
  BI-95485 fix:日期时间动态面板增加校验
es6
Claire.Tang 3 years ago
parent
commit
709f4ebaa5
  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: [{ listeners: [{
eventName: BI.TextButton.EVENT_CHANGE, eventName: BI.TextButton.EVENT_CHANGE,
action: function () { 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