提交 df2f686f 编写于 作者: U unknown

修复eldate组件清空后保存值仍然存在的问题

上级 41bf50ab
......@@ -134,6 +134,19 @@ MWF.xApplication.process.Xform.Eldate = MWF.APPEldate = new Class(
html += "</el-date-picker>";
return html;
},
getInputData: function(){
var data = this.json[this.json.$id];
if( data === null ){
if( ["monthrange","daterange"].contains(this.json.selectType) ) {
return [];
}else if( ["dates"].contains(this.json.selectType) ){
return [];
}else{
return "";
}
}
return this.json[this.json.$id];
},
getExcelData: function(){
var value = this.getData();
......
......@@ -134,6 +134,17 @@ MWF.xApplication.process.Xform.Eldatetime = MWF.APPEldatetime = new Class(
html += "</el-date-picker>";
return html;
},
getInputData: function(){
var data = this.json[this.json.$id];
if( data === null ){
if( ["datetimerange"].contains(this.json.selectType) ) {
return [];
}else{
return "";
}
}
return this.json[this.json.$id];
},
getExcelData: function(){
var value = this.getData();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册