找回密码
 立即注册

QQ登录

只需一步,快速开始

Lyn.Sueing

中级会员

62

主题

205

帖子

545

积分

中级会员

积分
545
Lyn.Sueing
中级会员   /  发表于:2021-9-1 14:39  /   查看:1800  /  回复:1
1金币
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


最佳答案

查看完整内容

您好, 此贴重复,本贴先结帖了,后续沟通在另一个帖子中进行。 https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=99183

1 个回复

倒序浏览
最佳答案
最佳答案
Lynn.Dou讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2021-9-1 14:39:07
来自 2#
您好,
此贴重复,本贴先结帖了,后续沟通在另一个帖子中进行。
https://gcdn.grapecity.com.cn/fo ... hread&tid=99183
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部