数据中心导出EXCEL报错
背景:今天业务反馈导出数据无响应,故进行查看。操作步骤:1.点击导出excel。
2.设置文件名和范围。
3.点击确定后命令成功执行。
4.但是无法自动下载导出文件等待无效并且控制台抛出异常。
报错信息:
VM42:1 Uncaught (in promise) ReferenceError: leve is not defined
at Object.<anonymous> (<anonymous>:1:4556)
at Array.forEach (<anonymous>)
at Function.forEach (o2.js:307:1)
at Array.each (o2.js:417:1)
at Object.appendDataToSheet (<anonymous>:1:4354)
at i.extend.$owner (o2.js:1471:1)
at Object.<anonymous> (<anonymous>:1:2830)
at Object._loadExportResource (<anonymous>:1:2123)
at i.extend.$owner (o2.js:1471:1)
at Object.exportToExcel (<anonymous>:1:2443)
调用地址:
/x_query_assemble_surface/jaxrs/view/flag/合理化建议_全部_副本/query/782d527b-bddf-4fb0-9a3b-b57bb3cd2c8f/execute?v=-5ac4946c51
响应结果:200OK
响应数据:count: 0
data: {where: {accessible: false, scope: "workCompleted",…},…}
date: "2024-11-13 10:19:38"
message: ""
position: 0
size: -1
spent: 395
type: "success"
请问这是什么问题造成的,应该如何解决
/x_component_Template/utils/ExcelUtils.js
这里有一个笔误
cxy 发表于 2024-11-15 11:30
/x_component_Template/utils/ExcelUtils.js
这里有一个笔误
修改后故障依旧 把出错的代码贴一下 cxy 发表于 2024-11-22 16:01
把出错的代码贴一下
caught ReferenceError: level is not defined
at Object.<anonymous> (<anonymous>:1:4556)
at Array.forEach (<anonymous>)
at Function.forEach (o2.js:307:1)
at Array.each (o2.js:417:1)
at Object.appendDataToSheet (<anonymous>:1:4354)
at i.extend.$owner (o2.js:1471:1)
at Object.<anonymous> (<anonymous>:1:2830)
at Object.<anonymous> (<anonymous>:1:2277)
at o2.js:23630:1
at HTMLScriptElement.l (o2.js:23732:1)
(
这不是出错的代码,在调试工具打开的情况下(按F12),然后执行有问题的功能,然后点错误堆栈可以看到是哪些代码出错了。然后帖出来。 cxy 发表于 2024-11-25 09:34
这不是出错的代码,在调试工具打开的情况下(按F12),然后执行有问题的功能,然后点错误堆栈可以看到是哪些 ...
.bind(this), u = 0; u < f; u++) {
var x, v, w, y, g = e.getRow(u + 1 + l), b = "", M = null, C = -1, T = null, A = -1;
p.each(function(t, n) {
if (t && (A = n,
b !== t)) {
var i = g.getCell(n + 1 + a);
i.value = t,
h(i),
T && M && (x = this.index2ColName(C + a),
v = u + 1 + l,
w = this.index2ColName(n - 1 + a),
y = (T ? u + 1 : f) + l,
x === w && v === y || 0 !== n && !p || e.mergeCells(x + v + ":" + w + y)),
b = t,
M = i,
C = n,
T = t
}
}
.bind(this)),
T && M && T && (x = this.index2ColName(C + a),
v = u + 1 + l,
w = this.index2ColName(A + a),
y = (T ? u + 1 : f) + l,
x === w && v === y || e.mergeCells(x + v + ":" + w + y))
} cxy 发表于 2024-11-15 11:30
/x_component_Template/utils/ExcelUtils.js
这里有一个笔误
我就是按照这个要求把这个js文件中的leve改成了level 把 leve 改成 u cxy 发表于 2024-11-25 11:37
把 leve 改成 u
ok,没问题了谢谢
页:
[1]