找回密码
 立即注册

QQ登录

只需一步,快速开始

LIUZHIPENG

注册会员

7

主题

30

帖子

113

积分

注册会员

积分
113
LIUZHIPENG
注册会员   /  发表于:2023-10-26 19:10  /   查看:1815  /  回复:10
本帖最后由 Lynn.Dou 于 2024-2-22 14:54 编辑

产品:SpreadJS
版本:16.2.5
问题编号:SJS-20903
LastReview:2024/02/22
最新进展:经过调查,该问题比较复杂,牵扯到计算引擎的优化,修复周期较长。

有个模板文件换完公式之后加载到spread(白屏卡死),您能帮助定位一下哪里的问题嘛
  1. var xhr = new XMLHttpRequest()
  2.         xhr.open('GET', excelFilePath, true)
  3.         xhr.responseType = 'blob'
  4.         //清除之前的status
  5.         document.getElementById('statusBar').innerHTML = ''
  6.         //增量加载
  7.         let statusBar = new GC.Spread.Sheets.StatusBar.StatusBar(document.getElementById('statusBar'))
  8.         statusBar.bind(spreadObj)
  9.         statusBar.remove('cellMode')
  10.         let loadingStatus = new LoadingStatus('LoadingStatus', { tipText: 'LoadingStatus' })
  11.         statusBar.add(loadingStatus)
  12.         xhr.onload = function (e) {
  13.           if (this.status == 200) {
  14.             let file = new File([this.response], 'test.sjs', { type: this.response.type })
  15.             spreadObj.open(
  16.               file,
  17.               function () {
  18.                 loading.close()
  19.                 self.sheetMonthObj = {}
  20.                 self.dataEntry(type)
  21.               },
  22.               function (e) {
  23.                 console.log(e) // error callback
  24.               },
  25.               {
  26.                 calcOnDemand: true,
  27.                 fullRecalc: true
  28.               }
  29.             )
  30.           } else {
  31.             loading.close()
  32.             self.$message.error('加载模板失败,请联系系统管理员')
  33.           }
  34.         }
  35.         xhr.send()
  36.         //spread 恢复绘制、恢复计算
  37.         spreadObj.resumeCalcService(true)
  38.         spreadObj.resumePaint()
复制代码



我把 calcOnDemand,  fullRecalc:改成false 模板就能加载出来,只不过一直等待


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

评分

参与人数 1金币 +200 收起 理由
Joestar.Xu + 200 感谢支持~

查看全部评分

10 个回复

倒序浏览
Joestar.XuSpreadJS 开发认证
超级版主   /  发表于:2023-10-27 09:53:51
沙发
您好,问题已复现,推测是公式计算方面的问题,这边调研一下,后续有进展我会在本帖中回复您。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
SpreadJS 17.0.10 | GcExcel 7.1.2 已发布~
回复 使用道具 举报
LIUZHIPENG
注册会员   /  发表于:2023-10-27 10:34:35
板凳
Joestar.Xu 发表于 2023-10-27 09:53
您好,问题已复现,推测是公式计算方面的问题,这边调研一下,后续有进展我会在本帖中回复您。

好的,感谢
回复 使用道具 举报
Joestar.XuSpreadJS 开发认证
超级版主   /  发表于:2023-10-27 11:43:48
地板
不客气
SpreadJS 17.0.10 | GcExcel 7.1.2 已发布~
回复 使用道具 举报
LIUZHIPENG
注册会员   /  发表于:2023-10-31 10:40:37
5#

请问现在有进展了嘛
回复 使用道具 举报
Joestar.XuSpreadJS 开发认证
超级版主   /  发表于:2023-10-31 11:47:14
6#
您好,问题目前还在调研中,等到有进展我会在本帖中回复您。
SpreadJS 17.0.10 | GcExcel 7.1.2 已发布~
回复 使用道具 举报
Joestar.XuSpreadJS 开发认证
超级版主   /  发表于:2023-11-1 08:45:17
7#
您好,该问题已被确认为是一个Bug,目前正在修复中,等修复完毕我会在帖子下回复您。
SpreadJS 17.0.10 | GcExcel 7.1.2 已发布~
回复 使用道具 举报
LIUZHIPENG
注册会员   /  发表于:2023-11-8 14:19:25
8#
Joestar.Xu 发表于 2023-11-1 08:45
您好,该问题已被确认为是一个Bug,目前正在修复中,等修复完毕我会在帖子下回复您。

你好,有结果了嘛
回复 使用道具 举报
Joestar.XuSpreadJS 开发认证
超级版主   /  发表于:2023-11-8 15:17:54
9#
您好,目前该问题还在修复中,涉及到一些性能上的优化问题,修复时间会比较长,等修复完毕我会在本帖中回复您。
SpreadJS 17.0.10 | GcExcel 7.1.2 已发布~
回复 使用道具 举报
Joestar.XuSpreadJS 开发认证
超级版主   /  发表于:2024-2-23 14:49:00
10#
您好,这边进一步调研了一下,该问题涉及计算引擎,导入该文件会导致堆栈溢出,我们后续会针对该问题进一步优化。
SpreadJS 17.0.10 | GcExcel 7.1.2 已发布~
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部