Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
electron-printer
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
0
Merge Requests
0
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
zhuzhequan
electron-printer
Commits
b2375b88
Commit
b2375b88
authored
Aug 25, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工厂生产下载取素材图
parent
7fcca94c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
src/views/design/head/index.vue
+15
-15
No files found.
src/views/design/head/index.vue
View file @
b2375b88
...
@@ -304,22 +304,9 @@ export default {
...
@@ -304,22 +304,9 @@ export default {
},
},
async
hasDesignImagesCanvasJsonList
(
designImagesCanvasJsonList
)
{
async
hasDesignImagesCanvasJsonList
(
designImagesCanvasJsonList
)
{
let
imageResList
=
[];
let
imageResList
=
[];
let
debug
=
false
;
if
(
this
.
detail
.
diyId
&&
this
.
detail
.
adjustable
&&
designImagesCanvasJsonList
)
{
if
(
debug
&&
this
.
detail
.
adjustable
&&
designImagesCanvasJsonList
)
{
designImagesCanvasJsonList
=
JSON
.
parse
(
designImagesCanvasJsonList
);
designImagesCanvasJsonList
=
JSON
.
parse
(
designImagesCanvasJsonList
);
if
(
designImagesCanvasJsonList
[
0
].
images
)
{
if
(
!
designImagesCanvasJsonList
[
0
].
images
)
{
designImagesCanvasJsonList
.
forEach
((
el
)
=>
{
el
.
images
.
forEach
((
item
)
=>
{
imageResList
.
push
({
productionFile
:
item
,
title
:
el
.
title
,
});
});
});
for
(
let
item
of
imageResList
)
{
item
.
productionFile
=
await
this
.
saveImgByUrl
(
item
.
productionFile
);
}
}
else
{
let
imageList
=
await
this
.
canvasToImage
(
designImagesCanvasJsonList
);
let
imageList
=
await
this
.
canvasToImage
(
designImagesCanvasJsonList
);
let
fm
=
new
FormData
();
let
fm
=
new
FormData
();
for
(
let
img
of
imageList
)
{
for
(
let
img
of
imageList
)
{
...
@@ -333,6 +320,19 @@ export default {
...
@@ -333,6 +320,19 @@ export default {
item
.
productionFile
=
item
.
url
;
item
.
productionFile
=
item
.
url
;
});
});
imageResList
=
Sres
.
data
;
imageResList
=
Sres
.
data
;
}
else
{
// designImagesCanvasJsonList.forEach((el) => {
// el.images.forEach((item) => {
// imageResList.push({
// productionFile: item,
// title: el.title,
// });
// });
// });
// for (let item of imageResList) {
// item.productionFile = await this.saveImgByUrl(item.productionFile);
// }
}
}
}
}
if
(
!
imageResList
.
length
)
{
if
(
!
imageResList
.
length
)
{
...
...
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