this.extInfo.templateName = this.table.form.tempNewTemplateName
const spread = scope.table.designer.getWorkbook()
var excelIo = new GC.Spread.Excel.IO()
excelIo.open(
file.raw,
function(json) {
var workbookObj = json
spread.fromJSON(workbookObj)
console.log('spread', workbookObj)
scope.table.hasTemplate = false
scope.table.saveButton = false
scope.extInfo.templateId = ''
if (scope.table.form.tempNewTemplateName) {
scope.table.form.tempNewTemplateName = null
}
scope.table.spread.options.newTabVisible = false
},
function(e) {
// process error
alert(e.errorMessage)
}
)
scope.table.centerDialogVisible = false
|