提交 5275009b 编写于 作者: U unknown

修复下拉框只读情况下

上级 df3aa62c
......@@ -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.
先完成此消息的编辑!
想要评论请 注册