提交 1fa0bf1b 编写于 作者: 蔡祥熠

Merge branch 'fix/Process.getData_select_completed' into 'wrdp'

Merge of fix/Process.getData_select_completed  修复下拉框只读情况下getData不正确的问题 to wrdp

See merge request o2oa/o2oa!2411
......@@ -322,16 +322,20 @@ MWF.xApplication.process.Xform.Select = MWF.APPSelect = new Class({
return {"value": value, "text": text};
},
getInputData: function(){
var ops = this.node.getElements("option");
var value = [];
ops.each(function(op){
if (op.selected){
var v = op.get("value");
if (v) value.push(v);
}
});
if (!value.length) return null;
return (value.length==1) ? value[0] : value;
if( this.readonly || this.json.isReadonly ){
return this._getBusinessData();
}else{
var ops = this.node.getElements("option");
var value = [];
ops.each(function(op){
if (op.selected){
var v = op.get("value");
if (v) value.push(v);
}
});
if (!value.length) return null;
return (value.length==1) ? value[0] : value;
}
},
resetData: function(){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册