提交 570ba36e 编写于 作者: NoSubject's avatar NoSubject

表单默认值支持异步返回

上级 510b0396
......@@ -1801,7 +1801,7 @@
check();
});
}else{
if (a.isAG){
if (a && a.isAG){
a.then(function(v){
o2.AG.all(v).then(function(r){
result = result.concat(r);
......
......@@ -200,5 +200,12 @@ MWF.xApplication.process.Xform.Number = MWF.APPNumber = new Class({
var value = this._getBusinessData();
if (!value) value = this._computeValue();
return value || "0";
},
__setValue: function(value){
this._setBusinessData(value);
if (this.node.getFirst()) this.node.getFirst().set("value", value || "0");
if (this.readonly || this.json.isReadonly) this.node.set("text", value);
this.moduleValueAG = null;
return value;
}
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册