Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡宝山
template_vue
Commits
ac9e97de
Commit
ac9e97de
authored
Feb 27, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预览图片 只能关闭一个
parent
cdac6952
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
42 deletions
+26
-42
checkList.vue
src/views/checkList.vue
+17
-35
inspectionSheet.vue
src/views/inspectionSheet.vue
+9
-7
No files found.
src/views/checkList.vue
View file @
ac9e97de
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
:src=
"url"
:src=
"url"
fit=
"full"
fit=
"full"
:preview-src-list=
"srcList"
:preview-src-list=
"srcList"
@
click
.
stop=
"
handleClickStop
"
@
click
.
stop=
"
clickMaskClosePreview
"
/>
/>
</div>
</div>
<div
class=
"twoImg"
>
<div
class=
"twoImg"
>
...
@@ -129,6 +129,7 @@
...
@@ -129,6 +129,7 @@
:src=
"url"
:src=
"url"
fit=
"full"
fit=
"full"
:preview-src-list=
"srcList"
:preview-src-list=
"srcList"
@
click
.
stop=
"clickMaskClosePreview"
/>
/>
</div>
</div>
<div
class=
"uploadButton"
>
<div
class=
"uploadButton"
>
...
@@ -274,31 +275,14 @@ export default {
...
@@ -274,31 +275,14 @@ export default {
]
]
}
}
},
},
mounted
()
{
this
.
$nextTick
(()
=>
{
var
domImageView
=
document
.
querySelector
(
'.el-image-viewer__mask'
)
// 获取遮罩层dom
if
(
!
domImageView
)
{
return
}
domImageView
.
addEventListener
(
'click'
,
()
=>
{
// 点击遮罩层时调用关闭按钮的 click 事件
document
.
querySelector
(
'.el-image-viewer__close'
).
click
()
})
})
},
methods
:
{
methods
:
{
handleClickStop
()
{
// 点击mask关闭图片预览
this
.
$nextTick
(()
=>
{
clickMaskClosePreview
(
e
)
{
document
.
addEventListener
(
'click'
,
function
(
e
)
{
// 使用addEventListener,会出现点击点击两次才触发的情况
console
.
log
(
'e'
,
e
.
target
.
className
)
if
(
e
.
target
.
getAttribute
(
'class'
)
===
'el-image-viewer__mask'
)
{
if
(
e
.
target
.
className
===
'el-image-viewer__mask'
)
{
this
.
$refs
.
preview
.
showViewer
=
false
const
close
=
document
.
querySelector
(
'.el-icon-circle-close'
)
// this.imgPreviewShow = false
console
.
log
(
'close'
,
close
)
}
console
.
log
(
'close'
,
close
.
click
())
close
.
click
()
}
})
})
},
},
handleClickTwoStop
()
{
handleClickTwoStop
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -334,9 +318,6 @@ export default {
...
@@ -334,9 +318,6 @@ export default {
.el-dialog__wrapper
{
.el-dialog__wrapper
{
background-color
:
rgba
(
0
,
0
,
0
,
0
.5
);
background-color
:
rgba
(
0
,
0
,
0
,
0
.5
);
}
}
.image-wrapper
{
text-align
:
center
;
}
::v-deep
.el-form-item__content
{
::v-deep
.el-form-item__content
{
margin-left
:
45px
!
important
;
margin-left
:
45px
!
important
;
...
@@ -360,7 +341,7 @@ export default {
...
@@ -360,7 +341,7 @@ export default {
//检查表主题
//检查表主题
.checkList
{
.checkList
{
.smallInput
{
.smallInput
{
width
:
9
0%
;
width
:
7
0%
;
//width: 176px;
//width: 176px;
}
}
...
@@ -460,17 +441,19 @@ export default {
...
@@ -460,17 +441,19 @@ export default {
margin-bottom
:
20px
;
margin-bottom
:
20px
;
.appearanceForm
{
.appearanceForm
{
width
:
100%
;
//width: 318.4px;
//width: 318.4px;
height
:
99
.2px
;
height
:
99
.2px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
.sample
{
.sample
{
margin-left
:
1
6px
;
margin-left
:
1
%
;
}
}
.badness
{
.badness
{
margin-left
:
20px
;
//
margin-left: 20px;
}
}
}
}
}
}
...
@@ -691,7 +674,7 @@ export default {
...
@@ -691,7 +674,7 @@ export default {
.peviewImg
{
.peviewImg
{
display
:
flex
;
display
:
flex
;
width
:
667px
;
//
width: 667px;
.OneImg
{
.OneImg
{
margin-top
:
-1
.6px
;
margin-top
:
-1
.6px
;
.OneElImg
{
.OneElImg
{
...
@@ -756,7 +739,7 @@ export default {
...
@@ -756,7 +739,7 @@ export default {
}
}
.uploadLabel
{
.uploadLabel
{
margin-top
:
7px
;
margin-top
:
7px
;
width
:
42px
;
width
:
3%
;
height
:
18px
;
height
:
18px
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
@@ -769,8 +752,7 @@ export default {
...
@@ -769,8 +752,7 @@ export default {
.submitButton
{
.submitButton
{
margin-top
:
50px
;
margin-top
:
50px
;
margin-left
:
27
.5%
;
margin-left
:
30%
;
margin-left
:
230
.4px
;
padding-bottom
:
50px
;
padding-bottom
:
50px
;
.buttoon
{
.buttoon
{
width
:
130px
;
width
:
130px
;
...
...
src/views/inspectionSheet.vue
View file @
ac9e97de
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</span>
</span>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<el-form
class=
"rightForm"
:model=
"oneFrom"
label-width=
"
42px
"
>
<el-form
class=
"rightForm"
:model=
"oneFrom"
label-width=
"
auto
"
>
<el-form-item
label=
"检印:"
>
<el-form-item
label=
"检印:"
>
<el-input
v-model=
"oneFrom.checkPrint"
class=
"rightInput"
/>
<el-input
v-model=
"oneFrom.checkPrint"
class=
"rightInput"
/>
</el-form-item>
</el-form-item>
...
@@ -651,7 +651,7 @@ export default {
...
@@ -651,7 +651,7 @@ export default {
}
}
.two
{
.two
{
width
:
25%
;
//
width: 25%;
border-right
:
1px
solid
;
border-right
:
1px
solid
;
border-left
:
1px
solid
;
border-left
:
1px
solid
;
...
@@ -661,6 +661,7 @@ export default {
...
@@ -661,6 +661,7 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
.twoTableInput
{
.twoTableInput
{
width
:
90%
;
border
:
1px
solid
#d9d9d9
;
border
:
1px
solid
#d9d9d9
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
...
@@ -681,7 +682,7 @@ export default {
...
@@ -681,7 +682,7 @@ export default {
}
}
.four
{
.four
{
width
:
25%
;
//
width: 25%;
border-left
:
1px
solid
;
border-left
:
1px
solid
;
.twoContent
{
.twoContent
{
...
@@ -690,6 +691,7 @@ export default {
...
@@ -690,6 +691,7 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
.twoTableInput
{
.twoTableInput
{
width
:
90%
;
border
:
1px
solid
#d9d9d9
;
border
:
1px
solid
#d9d9d9
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
...
@@ -1630,8 +1632,8 @@ export default {
...
@@ -1630,8 +1632,8 @@ export default {
margin-left
:
10
.8rem
;
margin-left
:
10
.8rem
;
margin-top
:
2
.5rem
;
margin-top
:
2
.5rem
;
.oneCadImgContent
{
.oneCadImgContent
{
width
:
600px
;
width
:
80%
;
height
:
400px
max-height
:
80%
}
}
}
}
...
@@ -1639,8 +1641,8 @@ export default {
...
@@ -1639,8 +1641,8 @@ export default {
margin-left
:
10
.8rem
;
margin-left
:
10
.8rem
;
margin-top
:
2
.5rem
;
margin-top
:
2
.5rem
;
.oneCadImgContent
{
.oneCadImgContent
{
width
:
600px
;
width
:
80%
;
height
:
400px
max-height
:
80%
}
}
}
}
}
}
...
...
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