Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6d1b1798
authored
2023-09-12 13:56:30 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:材料文件
1 parent
f3fb7fa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
src/views/xxba/components/clxx/dialog/imagePreview.vue
src/views/xxba/components/clxx/dialog/imagePreview.vue
View file @
6d1b179
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-12 13:4
2:11
* @LastEditTime: 2023-09-12 13:4
6:29
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -11,7 +11,7 @@
<div
class=
"next handle-btn"
v-if=
"!isScan"
@
click=
"next()"
>
<i
class=
"el-icon-arrow-right"
></i>
</div>
<div
class=
"img-list-wrap"
>
<div
class=
"img-list-wrap"
v-Loading=
"loading"
>
<img
src=
"http://127.0.0.1:38088/video=stream&camidx=0"
v-if=
"isScan"
alt=
"高拍仪"
>
<div
v-for=
"(img, i) in previewImg.imgList"
:key=
"i"
v-else
>
<photo-zoom
:url=
"img.fileurl"
:bigWidth=
"165"
v-if=
"i === previewImg.index"
:scale=
"2"
...
...
@@ -34,7 +34,7 @@
<el-button
type=
"primary"
icon=
"el-icon-delete-solid"
@
click=
"handleDelete"
v-if=
"thumbnailImages.length>0 && ableOperation"
>
删除
</el-button>
<div
v-if=
"ableOperation"
class=
"pl-5"
>
<el-button
type=
"primary"
@
click=
"handleOpenScan"
v-if=
"ableOperation"
>
{{
scanTitle
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleOpenScan"
v-if=
"ableOperation"
:loading=
"loading"
>
{{
scanTitle
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleViewScan"
v-if=
"isScan && ableOperation"
>
拍照
</el-button>
</div>
</div>
...
...
@@ -73,6 +73,7 @@
},
data
()
{
return
{
loading
:
false
,
key
:
0
,
isScan
:
false
,
// 打开高拍仪
...
...
@@ -125,13 +126,15 @@
handleOpenScan
()
{
this
.
isScan
=
!
this
.
isScan
if
(
this
.
isScan
)
{
this
.
loading
=
true
this
.
$message
({
message
:
'正在启动程序请稍等'
,
type
:
'success'
})
setTimeout
(()
=>
{
this
.
scanTitle
=
'关闭高拍仪'
},
4000
)
this
.
loading
=
false
},
3000
)
}
else
{
this
.
scanTitle
=
'打开高拍仪'
}
...
...
@@ -144,6 +147,11 @@
handleMove
(
direction
)
{
move
(
this
.
previewImg
.
imgList
[
this
.
previewImg
.
index
].
bsmFile
,
direction
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
direction
==
'left'
)
{
this
.
previewImg
.
index
=
this
.
previewImg
.
index
-
1
}
else
{
this
.
previewImg
.
index
=
this
.
previewImg
.
index
+
1
}
this
.
$emit
(
'updateList'
,
{
children
:
res
.
result
,
bsmMaterial
:
this
.
previewImg
.
bsmMaterial
})
this
.
$message
({
message
:
'移动成功!'
,
...
...
Please
register
or
sign in
to post a comment