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

修复下拉框只读情况下

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