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
ad10ecc2
Commit
ad10ecc2
authored
Mar 04, 2026
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改切换压板的图片尺寸问题
parent
d0aa18ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
10 deletions
+34
-10
src/views/design/main/index.vue
+34
-10
No files found.
src/views/design/main/index.vue
View file @
ad10ecc2
...
...
@@ -274,11 +274,6 @@ export default {
this
.
selectImgList
=
[];
this
.
selectIndex
=
-
1
;
this
.
selectImgIndex
=
0
;
console
.
log
(
"this.gridWH"
,
this
.
gridWH
);
console
.
log
(
"this.grid"
,
this
.
grid
);
console
.
log
(
"gridSpacing"
,
this
.
gridSpacing
);
console
.
log
(
"WHproportion"
,
this
.
WHproportion
);
console
.
log
(
"this.systemSetting"
,
this
.
systemSetting
);
},
desktoVersion
(
newValue
)
{
if
(
newValue
)
{
...
...
@@ -385,6 +380,8 @@ export default {
this
.
systemSetting
.
gridValue
=
5
;
}
else
{
this
.
systemSetting
.
gridValue
=
0
;
this
.
$store
.
commit
(
"setWHproportion"
,
1.7
);
this
.
$store
.
commit
(
"setGrid"
);
}
},
immediate
:
true
,
...
...
@@ -770,7 +767,7 @@ export default {
this
.
isView
=
false
;
// bw = Number(bw.replsace("px", ""));
for
(
let
i
=
0
;
i
<
files
.
length
;
i
++
)
{
files
[
i
].
url
=
files
[
i
].
productionFile
||
files
[
i
].
url
;
files
[
i
].
url
=
files
[
i
]
?
.
productionFile
||
files
[
i
].
url
;
that
.
$nextTick
(
async
()
=>
{
let
w
=
bw
/
2
;
let
h
=
bh
/
2
;
...
...
@@ -832,6 +829,8 @@ export default {
that
.
showImgSetting
=
true
;
if
(
this
.
newDesktopDevice
!=
3
)
{
if
(
size
&&
!
files
[
i
].
isCut
)
{
console
.
log
(
7898
);
that
.
ev
(
"cover"
);
}
else
{
that
.
ev
(
"x_center"
);
...
...
@@ -1282,6 +1281,31 @@ export default {
case
"grid"
:
this
.
row
=
value
.
row
;
this
.
col
=
value
.
col
;
if
(
this
.
detail
&&
this
.
detail
.
mssWidth
&&
this
.
detail
.
adjustable
&&
this
.
detail
.
mssHeight
)
{
this
.
detail
.
designImageSize
=
{
width
:
this
.
detail
.
mssWidth
,
height
:
this
.
detail
.
mssHeight
,
};
}
if
(
this
.
selectImgIndex
!=
-
1
&&
this
.
selectImgList
.
length
)
{
this
.
getBackFile
(
{
files
:
[
this
.
selectImgList
[
this
.
selectImgIndex
]],
size
:
this
.
detail
.
designImageSize
||
null
,
},
()
=>
{
this
.
imgHistoryList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
imgList
)),
);
},
);
}
break
;
case
"index"
:
this
.
indexChange
(
value
);
...
...
@@ -1321,8 +1345,8 @@ export default {
}
else
{
this
.
selectImgIndex
=
0
;
}
console
.
log
(
777
,
this
.
selectImgIndex
);
console
.
log
(
"
selectImgList"
,
this
.
selectImgList
);
console
.
log
(
"
designImageSize"
,
this
.
detail
.
designImageSize
);
if
(
this
.
selectImgIndex
!=
-
1
)
{
this
.
getBackFile
(
...
...
@@ -1546,7 +1570,7 @@ export default {
class=
"div-item"
style=
"flex: 100%;"
>
<div>
素材
规格:
</div>
<div>
模
规格:
</div>
<div
class=
"item-value"
>
mm:
(
w:
...
...
@@ -1560,7 +1584,7 @@ export default {
class=
"div-item"
style=
"flex: 100%;"
>
<div
style=
"opacity: 0;"
>
素材
规格:
</div>
<div
style=
"opacity: 0;"
>
模
规格:
</div>
<div
class=
"item-value"
>
inch:
(
w:
{{
(
Number
(
detail
.
mssWidth
)
/
25.4
).
toFixed
(
1
)
}}
...
...
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