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
3f5fbf77
Commit
3f5fbf77
authored
Mar 31, 2026
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改规格图片的逻辑
parent
fe1e5ff2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
src/server/entity/function.js
+1
-1
src/views/design/main/index.vue
+6
-0
No files found.
src/server/entity/function.js
View file @
3f5fbf77
...
@@ -164,7 +164,6 @@ export default {
...
@@ -164,7 +164,6 @@ export default {
?
downloadBySubOrderNumber
[
"CNHLC"
]
?
downloadBySubOrderNumber
[
"CNHLC"
]
:
downloadBySubOrderNumber
[
"USHLC"
];
:
downloadBySubOrderNumber
[
"USHLC"
];
}
}
console
.
log
(
"url"
,
url
);
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
},
...
@@ -173,6 +172,7 @@ export default {
...
@@ -173,6 +172,7 @@ export default {
if
(
data
.
code
!==
200
)
{
if
(
data
.
code
!==
200
)
{
return
res
.
json
(
data
);
return
res
.
json
(
data
);
}
}
console
.
log
(
"data"
,
data
);
// 转义中文
// 转义中文
if
(
data
.
message
)
{
if
(
data
.
message
)
{
...
...
src/views/design/main/index.vue
View file @
3f5fbf77
...
@@ -778,6 +778,7 @@ export default {
...
@@ -778,6 +778,7 @@ export default {
x
=
w
;
x
=
w
;
y
=
height_px
/
2
;
y
=
height_px
/
2
;
rate
=
height_px
/
width_px
;
rate
=
height_px
/
width_px
;
if
(
this
.
newDesktopDevice
==
3
)
{
if
(
this
.
newDesktopDevice
==
3
)
{
//惠立彩 直接获取图片原始像素进行技术
//惠立彩 直接获取图片原始像素进行技术
const
scale
=
bh
/
data
.
height
;
const
scale
=
bh
/
data
.
height
;
...
@@ -803,6 +804,7 @@ export default {
...
@@ -803,6 +804,7 @@ export default {
}
}
}
}
this
.
currentImgData
=
{
...
data
};
this
.
currentImgData
=
{
...
data
};
that
.
imgList
=
[];
that
.
imgList
=
[];
that
.
imgList
.
push
({
that
.
imgList
.
push
({
url
:
files
[
i
].
url
,
url
:
files
[
i
].
url
,
...
@@ -815,10 +817,12 @@ export default {
...
@@ -815,10 +817,12 @@ export default {
h
:
height_px
,
h
:
height_px
,
r
:
0
,
r
:
0
,
});
});
that
.
selectIndex
=
that
.
imgList
.
length
-
1
;
that
.
selectIndex
=
that
.
imgList
.
length
-
1
;
that
.
showImgSetting
=
true
;
that
.
showImgSetting
=
true
;
isCp
?
that
.
ev
(
"x_center"
)
:
that
.
ev
(
"cover"
);
isCp
?
that
.
ev
(
"x_center"
)
:
that
.
ev
(
"cover"
);
if
(
!
size
)
that
.
ev
(
"cover"
);
if
(
isCut
)
that
.
ev
(
"cover"
);
if
(
isCut
)
that
.
ev
(
"cover"
);
this
.
$nextTick
(
async
()
=>
{
this
.
$nextTick
(
async
()
=>
{
//等图片铺上网格后判断是否超过网格
//等图片铺上网格后判断是否超过网格
...
@@ -1788,6 +1792,7 @@ export default {
...
@@ -1788,6 +1792,7 @@ export default {
v-if=
"
v-if=
"
productMark == 'custom_part' &&
productMark == 'custom_part' &&
selectImgList.length &&
selectImgList.length &&
detail.adjustable &&
!isOver &&
!isOver &&
!isMove &&
!isMove &&
!selectImgList.some((el) => el.isCut) &&
!selectImgList.some((el) => el.isCut) &&
...
@@ -1801,6 +1806,7 @@ export default {
...
@@ -1801,6 +1806,7 @@ export default {
:style=
"{ left: isView ? '' : '6%' }"
:style=
"{ left: isView ? '' : '6%' }"
v-if=
"
v-if=
"
productMark == 'custom_part' &&
productMark == 'custom_part' &&
detail.adjustable &&
selectImgList.length &&
selectImgList.length &&
!selectImgList.some((el) => el.isCut) &&
!selectImgList.some((el) => el.isCut) &&
isOver &&
isOver &&
...
...
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