提交 70146bfe 编写于 作者: U unknown

修复导入模型的一个BUG

上级 747cd770
......@@ -741,6 +741,7 @@ MWF.xApplication.process.Work.Processor = new Class({
"cancel"
]
}
this.tablet = new MWF.widget.Tablet(this.handwritingAreaNode, handWritingOptions, null);
this.tablet.load();
}.bind(this));
......
......@@ -524,22 +524,27 @@ MWF.xApplication.query.Query.Importer = MWF.QImporter = new Class({
if( !this.excelUtils ){
this.excelUtils = new MWF.xApplication.query.Query.Importer.ExcelUtils( this );
}
var doExport = function () {
var arg = {
data : [this.getTitleArray()],
colWidthArray : this.getColWidthArray(),
title : this.getFileName(fileName)
};
if(callback)callback(arg);
this.excelUtils.exportToExcel(
arg.data,
arg.title,
arg.colWidthArray,
this.getDateIndexArray()
)
}.bind(this)
if( !this.importerJson ){
this.getImporterJSON( function () {
var arg = {
data : [this.getTitleArray()],
colWidthArray : this.getColWidthArray(),
title : this.getFileName(fileName)
};
if(callback)callback(arg);
this.excelUtils.exportToExcel(
arg.data,
arg.title,
arg.colWidthArray,
this.getDateIndexArray()
)
doExport()
}.bind(this))
}else{
doExport();
}
},
getFileName: function(fileName){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册