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
e774c720
Commit
e774c720
authored
May 12, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增下载原素材按钮以及完成上一单提示
parent
97e0fb09
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
3 deletions
+40
-3
config/env.json
+2
-2
src/views/design/head/index.vue
+0
-0
src/views/design/main/index.vue
+38
-1
No files found.
config/env.json
View file @
e774c720
{
"apiApiHost"
:
"http://10.168.31.142:8060
/api"
,
"fileApiUrl"
:
"http://10.168.31.142:80
/upload/factory"
,
"apiApiHost"
:
"https://factory.jomalls.com
/api"
,
"fileApiUrl"
:
"https://factory.jomalls.com
/upload/factory"
,
"visionUrl"
:
"https://console.jomalls.com"
}
src/views/design/head/index.vue
View file @
e774c720
This diff is collapsed.
Click to expand it.
src/views/design/main/index.vue
View file @
e774c720
...
...
@@ -813,6 +813,33 @@ export default {
}
this
.
$store
.
commit
(
"setIsPreView"
,
this
.
isView
);
},
async
downloadImg
()
{
let
res
=
await
this
.
$api
.
post
(
"/downloadBySubOrderNumber"
,
[
this
.
detail
.
id
,
this
.
$store
.
state
.
desktopDevice
,
]);
if
(
res
.
data
.
length
===
0
)
return
this
.
$message
.
warning
(
"未找到素材图!"
);
let
imgList
=
[];
res
.
data
.
forEach
((
el
)
=>
{
imgList
=
imgList
.
concat
(
el
.
list
||
[]);
});
let
arr
=
[];
res
.
data
.
forEach
((
el
)
=>
{
if
(
el
.
list
)
{
el
.
list
.
forEach
((
it
)
=>
{
arr
.
push
(
it
);
});
}
});
res
.
data
=
arr
.
filter
((
el
)
=>
el
.
type
!==
1
);
this
.
selectImgList
=
[...
res
.
data
];
console
.
log
(
823
,
this
.
selectImgList
);
this
.
imgList
=
[];
this
.
selectIndex
=
-
1
;
this
.
selectImgIndex
=
0
;
this
.
getBackFile
({
files
:
[
this
.
selectImgList
[
0
]]
});
},
},
mounted
()
{
this
.
imgHeight
=
window
.
screen
.
height
+
"px"
;
...
...
@@ -1025,14 +1052,24 @@ export default {
</PicScrollbarBox>
<PicScrollbarBox
boxTitle=
"素材图"
emptyTitle=
"素材图为空"
>
<
template
#
titleRight
>
<div>
<el-button
type=
"primary"
size=
"small"
v-if=
"selectImgList.length"
style=
"margin: 10px;"
style=
"margin: 5px;"
@
click=
"downloadImg"
>
下载原素材
</el-button
>
<el-button
type=
"primary"
size=
"small"
v-if=
"selectImgList.length"
style=
"margin: 5px;"
@
click=
"cutImgFn"
>
裁切
</el-button
>
</div>
</
template
>
<
template
#
mainContent
>
<div
...
...
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