Browse Source

Pull request #2788: BI-107309 fix: 【6.0迭代】来源表是未更新到最新数据的自助数据集,切换数据量灰化的tooltip提示不对

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '3824c7b646fae018b12ea28c730b18e61f537c5d':
  BI-107309 fix: 【6.0迭代】来源表是未更新到最新数据的自助数据集,切换数据量灰化的tooltip提示不对
es6
Dailer 2 years ago
parent
commit
b3da2db3fa
  1. 29
      src/case/combo/textvaluecombo/combo.textvalue.js

29
src/case/combo/textvaluecombo/combo.textvalue.js

@ -83,25 +83,22 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
},
_checkError: function (v) {
if (BI.isNull(v) || BI.isEmptyArray(v) || BI.isEmptyString(v)) {
this.trigger.options.tipType = "success";
v = BI.isArray(v) ? v[0] : v;
var tipType = null;
var result = BI.find(this.options.items, function (idx, item) {
return v === item.value;
});
if (BI.isNull(result)) {
if (this.isEnabled()) {
tipType = "warning";
}
this.element.addClass("error");
this.trigger.element.addClass("error");
} else {
this.element.removeClass("error");
this.trigger.element.removeClass("error");
} else {
v = BI.isArray(v) ? v : [v];
var result = BI.find(this.options.items, function (idx, item) {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.setTipType("warning");
this.element.addClass("error");
this.trigger.element.addClass("error");
} else {
this.trigger.setTipType("success");
this.element.removeClass("error");
this.trigger.element.removeClass("error");
}
}
this.trigger.setTipType(tipType);
},
setValue: function (v) {

Loading…
Cancel
Save