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
6c8146f3
Commit
6c8146f3
authored
Feb 03, 2026
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改文件上传配置
parent
9d42e007
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
config/env.json
+2
-2
src/server/entity/function.js
+6
-2
src/server/utils/store.js
+0
-0
src/views/design/head/index.vue
+14
-0
No files found.
config/env.json
View file @
6c8146f3
{
"apiApiHost"
:
"https://factory.jomalls.com/api"
,
"fileApiUrl"
:
"https://factory.jomalls.com/upload/factory"
,
"visionUrl"
:
"https://console.jomalls.com"
,
"configPath"
:
"D:
\\
work
\\
electron-printer
\\
config
\\
env.json"
}
{
"apiApiHost"
:
"https://11factory.jomalls.com/api"
,
"fileApiUrl"
:
"https://11factory.jomalls.com/upload/factory"
,
"visionUrl"
:
"https://console.jomalls.com"
,
"configPath"
:
"D:
\\
work
\\
electron-printer
\\
config
\\
env.json"
}
\ No newline at end of file
\ No newline at end of file
src/server/entity/function.js
View file @
6c8146f3
...
@@ -132,6 +132,7 @@ export default {
...
@@ -132,6 +132,7 @@ export default {
downloadBySubOrderNumber
:
async
(
req
,
res
)
=>
{
downloadBySubOrderNumber
:
async
(
req
,
res
)
=>
{
env
=
getHostApi
().
apiApiHost
;
env
=
getHostApi
().
apiApiHost
;
fileEnv
=
getHostApi
().
fileApiUrl
;
const
params
=
req
.
body
;
const
params
=
req
.
body
;
const
token
=
req
.
headers
[
"jwt-token"
];
const
token
=
req
.
headers
[
"jwt-token"
];
...
@@ -139,11 +140,14 @@ export default {
...
@@ -139,11 +140,14 @@ export default {
CN
:
"factory/podJomallOrderProductCn/downloadDesignImages"
,
CN
:
"factory/podJomallOrderProductCn/downloadDesignImages"
,
US
:
"factory/podJomallOrderProductUs/downloadDesignImages"
,
US
:
"factory/podJomallOrderProductUs/downloadDesignImages"
,
GC
:
"factory/podJomallOrder/downloadByProduction"
,
GC
:
"factory/podJomallOrder/downloadByProduction"
,
HLC
:
"factory/podJomallOrderProductUs/downloadCompatibleDesignImages"
,
};
};
try
{
try
{
const
url
=
urlMap
[
params
.
orderType
];
let
url
=
urlMap
[
params
.
orderType
];
if
(
params
.
device
==
3
)
{
url
=
urlMap
[
"HLC"
];
}
const
{
data
}
=
await
axios
.
post
(
`
${
env
}
/
${
url
}
`
,
[...
params
.
ids
],
{
const
{
data
}
=
await
axios
.
post
(
`
${
env
}
/
${
url
}
`
,
[...
params
.
ids
],
{
headers
:
{
"jwt-token"
:
token
},
headers
:
{
"jwt-token"
:
token
},
});
});
...
...
src/server/utils/store.js
View file @
6c8146f3
This diff is collapsed.
Click to expand it.
src/views/design/head/index.vue
View file @
6c8146f3
...
@@ -104,6 +104,7 @@ export default {
...
@@ -104,6 +104,7 @@ export default {
"hsla(209, 100%, 56%, 0.73)"
,
"hsla(209, 100%, 56%, 0.73)"
,
"#c7158577"
,
"#c7158577"
,
],
],
faceType
:
"1"
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -1070,6 +1071,16 @@ export default {
...
@@ -1070,6 +1071,16 @@ export default {
</el-tooltip>
</el-tooltip>
</el-popover>
</el-popover>
</div>
</div>
<div
v-else
>
<div
class=
"selectInput"
>
<div>
当前打印:
</div>
<el-select
v-model=
"faceType"
placeholder=
"请选择"
class=
"FaceType"
>
<el-option
label=
"A面 / 正面"
value=
"1"
></el-option>
<el-option
label=
"B面 / 反面"
value=
"2"
></el-option>
</el-select>
</div>
</div>
</div>
</div>
<div
class=
"center-input"
>
<div
class=
"center-input"
>
<!--
<el-button
<!--
<el-button
...
@@ -1271,6 +1282,9 @@ export default {
...
@@ -1271,6 +1282,9 @@ export default {
.
el
-
select
.
el
-
input
{
.
el
-
select
.
el
-
input
{
max
-
width
:
90
px
;
max
-
width
:
90
px
;
}
}
.
FaceType
.
el
-
input
{
max
-
width
:
120
px
;
}
}
}
}
}
::
v
-
deep
{
::
v
-
deep
{
...
...
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