Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
4aed8e54
Commit
4aed8e54
authored
Jul 01, 2025
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!54
parents
a5382b41
50481cae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
src/views/order/podUs/index.vue
+21
-16
No files found.
src/views/order/podUs/index.vue
View file @
4aed8e54
...
...
@@ -1921,23 +1921,28 @@ const handleDownload = async (row: PodUsOrderListData, type: string) => {
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
url
=
filePath
+
(
type
===
'png'
?
row
.
url
:
row
.
tiffUrl
)
fetch
(
url
)
.
then
((
res
)
=>
res
.
blob
())
.
then
((
blob
)
=>
{
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
URL
.
createObjectURL
(
blob
)
link
.
download
=
url
?
url
.
split
(
'/'
).
pop
()
||
'download'
:
'download'
link
.
click
()
}
)
.
then
(()
=>
{
batchDownloadDownloadApi
({
id
:
row
.
id
,
type
}
)
ElMessage
.
success
(
'操作成功'
)
search
()
loadTabData
()
}
)
const
url
=
type
===
'png'
?
filePath
+
row
.
url
:
`https://ps.jomalls.com/tiff/`
+
row
.
tiffUrl
const
response
=
await
fetch
(
url
)
if
(
!
response
.
ok
)
{
throw
new
Error
(
'网络响应错误'
)
}
const
blob
=
await
response
.
blob
()
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
URL
.
createObjectURL
(
blob
)
link
.
download
=
url
?
url
.
split
(
'/'
).
pop
()
||
'download'
:
'download'
link
.
click
()
await
batchDownloadDownloadApi
({
id
:
row
.
id
,
type
}
)
ElMessage
.
success
(
'操作成功'
)
search
()
loadTabData
()
}
catch
(
e
)
{
ElMessage
.
error
(
'下载失败'
)
console
.
error
(
e
)
}
finally
{
loading
.
close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment