提交 eddae578 编写于 作者: U unknown 提交者: NoSubject

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


(cherry picked from commit df2f686f)
上级 ad4938c6
...@@ -134,6 +134,19 @@ MWF.xApplication.process.Xform.Eldate = MWF.APPEldate = new Class( ...@@ -134,6 +134,19 @@ MWF.xApplication.process.Xform.Eldate = MWF.APPEldate = new Class(
html += "</el-date-picker>"; html += "</el-date-picker>";
return html; 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(){ getExcelData: function(){
var value = this.getData(); var value = this.getData();
......
...@@ -134,6 +134,17 @@ MWF.xApplication.process.Xform.Eldatetime = MWF.APPEldatetime = new Class( ...@@ -134,6 +134,17 @@ MWF.xApplication.process.Xform.Eldatetime = MWF.APPEldatetime = new Class(
html += "</el-date-picker>"; html += "</el-date-picker>";
return html; 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(){ getExcelData: function(){
var value = this.getData(); var value = this.getData();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册