Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
EcomWeb
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2026-04-09 19:11:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
253321afd11644850e786400da9f07ded8b77317
253321af
1 parent
ddd76073
下载文件错误处理。
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
src/utils/zipdownload.js
src/views/exportListQuery/index.vue
src/views/pdd-info/index.vue
src/views/reportingData/index.vue
src/utils/zipdownload.js
View file @
253321a
...
...
@@ -127,7 +127,8 @@ export function downloadAsyncExportByTaskId(taskId, options = {}) {
if
(
reader
.
result
&&
reader
.
result
!=
null
&&
reader
.
result
!=
""
)
{
try
{
const
jsonData
=
JSON
.
parse
(
reader
.
result
);
if
(
jsonData
.
code
==
"10103"
)
{
console
.
log
(
jsonData
);
if
(
jsonData
.
code
==
"100211"
)
{
if
(
retryCount
<
maxRetry
)
{
setTimeout
(()
=>
{
downloadAsyncExportByTaskId
(
taskId
,
{
...
...
src/views/exportListQuery/index.vue
View file @
253321a
...
...
@@ -548,7 +548,7 @@ export default {
if (JSON.parse(reader.result)) {
debugger;
let jsonData = JSON.parse(reader.result);
if (jsonData.code == "10
103
") {
if (jsonData.code == "10
0211
") {
// 检查重试次数
if (retryCount < 50) {
// 延迟后重试
...
...
src/views/pdd-info/index.vue
View file @
253321a
...
...
@@ -430,14 +430,14 @@ export default {
await this.callOtherApi(); // 调用其他接口
} else if (result.data.status === "FAILED") {
this.stopPolling();
this.handleFailure();
//
this.handleFailure();
this.alertWarningMsg(result.data.errorMessage);
} else {
this.startPolling(); // 启动轮询
}
} else {
this.stopPolling();
this.handleFailure();
//
this.handleFailure();
}
// 其他状态继续轮询
} catch (error) {
...
...
src/views/reportingData/index.vue
View file @
253321a
...
...
@@ -1368,7 +1368,7 @@ export default {
if (JSON.parse(reader.result)) {
debugger;
let jsonData = JSON.parse(reader.result);
if (jsonData.code == "10
103
") {
if (jsonData.code == "10
0211
") {
// 检查重试次数
if (retryCount < 50) {
// 延迟后重试
...
...
Please
register
or
login
to post a comment