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
f345920a
Commit
f345920a
authored
Apr 29, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test'
# Conflicts: # src/views/design/head/index.vue
parents
330de292
be55ff7c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
src/views/design/head/index.vue
+0
-1
src/views/design/main/index.vue
+12
-9
No files found.
src/views/design/head/index.vue
View file @
f345920a
...
@@ -311,7 +311,6 @@ export default {
...
@@ -311,7 +311,6 @@ export default {
item
.
productionFile
=
item
.
url
;
item
.
productionFile
=
item
.
url
;
});
});
imageResList
=
Sres
.
data
;
imageResList
=
Sres
.
data
;
console
.
log
(
imageResList
,
"imageResList"
);
this
.
imgList
=
[];
this
.
imgList
=
[];
}
}
this
.
$store
.
commit
(
"setProductDetail"
,
findByPodProductionNo
.
data
);
this
.
$store
.
commit
(
"setProductDetail"
,
findByPodProductionNo
.
data
);
...
...
src/views/design/main/index.vue
View file @
f345920a
...
@@ -359,6 +359,9 @@ export default {
...
@@ -359,6 +359,9 @@ export default {
}
}
},
},
selectImg
(
it
,
i
)
{
selectImg
(
it
,
i
)
{
if
(
this
.
isView
)
{
return
;
}
// this.selectImgIndexList.push(i)
// this.selectImgIndexList.push(i)
let
item
=
this
.
imgList
.
find
((
img
)
=>
img
.
fileName
===
it
.
fileName
);
let
item
=
this
.
imgList
.
find
((
img
)
=>
img
.
fileName
===
it
.
fileName
);
if
(
item
)
return
;
if
(
item
)
return
;
...
@@ -527,12 +530,12 @@ export default {
...
@@ -527,12 +530,12 @@ export default {
});
});
},
},
getComputedName
(
title
)
{
getComputedName
(
title
)
{
let
img
=
this
.
selectImgList
.
find
((
it
)
=>
it
.
title
===
title
);
let
img
=
this
.
selectImgList
.
find
((
it
)
=>
it
.
title
===
title
||
it
.
title
.
includes
(
title
)
);
return
img
?.
designId
;
return
img
?.
designId
;
},
},
getComputedTitle
(
title
)
{
getComputedTitle
(
title
)
{
console
.
log
(
this
.
selectImgList
,
"this.selectImgList"
);
console
.
log
(
this
.
selectImgList
,
"this.selectImgList"
);
let
img
=
this
.
selectImgList
.
find
((
it
)
=>
it
.
title
===
title
);
let
img
=
this
.
selectImgList
.
find
((
it
)
=>
it
.
title
===
title
||
it
.
title
.
includes
(
title
)
);
return
img
?.
productionFile
;
return
img
?.
productionFile
;
},
},
getBackFile
({
files
,
size
},
callback
)
{
getBackFile
({
files
,
size
},
callback
)
{
...
@@ -541,6 +544,8 @@ export default {
...
@@ -541,6 +544,8 @@ export default {
document
.
getElementsByClassName
(
"grid"
)[
0
]
document
.
getElementsByClassName
(
"grid"
)[
0
]
).
width
;
).
width
;
bw
=
Number
(
bw
.
replace
(
"px"
,
""
));
bw
=
Number
(
bw
.
replace
(
"px"
,
""
));
// bw = Number(bw.replace("px", ""));
for
(
let
i
=
0
;
i
<
files
.
length
;
i
++
)
{
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
()
=>
{
that
.
$nextTick
(
async
()
=>
{
...
@@ -932,20 +937,18 @@ export default {
...
@@ -932,20 +937,18 @@ export default {
style=
"margin: 5px;width: auto;"
style=
"margin: 5px;width: auto;"
border
border
:data=
"detail.imageAry"
:data=
"detail.imageAry"
:header-cell-style=
"
{ 'text-align': 'center' }"
:header-cell-style=
"
{ 'text-align': 'center' }">
>
<el-table-column
align=
"center"
label=
"打印区域"
<el-table-column
label=
"打印区域"
prop=
"title"
prop=
"title"
align=
"center"
align=
"center"
width=
"100px"
width=
"100px"
></el-table-column>
></el-table-column>
<el-table-column
label=
"效果图"
prop=
"title"
>
<el-table-column
align=
"center"
label=
"效果图"
prop=
"title"
>
<template
slot-scope=
"
{
row
}">
<template
slot-scope=
"
{
row
}">
<img
class=
"full-width"
:src=
"row.url"
alt=
""
/>
<img
class=
"full-width"
:src=
"row.url"
alt=
""
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"素材图"
prop=
"title"
>
<el-table-column
align=
"center"
label=
"素材图"
prop=
"title"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<img
<img
style=
"cursor: pointer"
style=
"cursor: pointer"
...
...
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