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
f7cf8c90
authored
2023-10-12 09:57:25 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:所有材料信息功能的完善
1 parent
9c26d664
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
24 deletions
src/views/components/imagePreview.vue
src/views/djbworkflow/components/clxx/dialog/imagePreview.vue
src/views/registerBook/components/clxx/dialog/imagePreview.vue
src/views/xxba/components/clxx/dialog/imagePreview.vue
src/views/components/imagePreview.vue
View file @
f7cf8c9
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-12 09:4
0:40
* @LastEditTime: 2023-10-12 09:4
9:08
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -26,7 +26,7 @@
<el-upload
class=
"fileUpdate"
ref=
"upload"
:key=
"key"
action=
""
:show-file-list=
"false"
:multiple=
"true"
:auto-upload=
"false"
:on-change=
"handleChange"
accept=
".JPG, .PNG, .JPEG,.jpg, .png, .jpeg"
>
<el-button
icon=
"el-icon-upload"
type=
"primary"
v-if=
"ableOperation"
>
上传
</el-button>
<el-button
icon=
"el-icon-upload"
type=
"primary"
:loading=
"upDateloading"
v-if=
"ableOperation"
>
上传
</el-button>
</el-upload>
<!-- 左移右移 -->
<el-button
type=
"primary"
@
click=
"handleMove('left')"
v-if=
"ableOperation && thumbnailImages.length>0"
>
左移
</el-button>
...
...
@@ -73,6 +73,7 @@
},
data
()
{
return
{
upDateloading
:
false
,
loading
:
false
,
key
:
0
,
isScan
:
false
,
...
...
@@ -288,6 +289,7 @@
this
.
key
++
return
;
}
this
.
upDateloading
=
true
formData
.
append
(
"bsmSj"
,
this
.
previewImg
.
bsmSj
);
formData
.
append
(
"bsmSlsq"
,
this
.
previewImg
.
bsmSlsq
);
if
(
this
.
previewImg
.
imgList
.
length
>
0
)
{
...
...
@@ -300,6 +302,7 @@
message
:
'上传成功!'
,
type
:
'success'
})
this
.
upDateloading
=
false
this
.
$refs
.
upload
.
clearFiles
();
this
.
maxFileLength
=
0
}
...
...
src/views/djbworkflow/components/clxx/dialog/imagePreview.vue
View file @
f7cf8c9
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-
09-18 17:11:37
* @LastEditTime: 2023-
10-12 09:54:01
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -26,11 +26,11 @@
<el-upload
class=
"fileUpdate"
ref=
"upload"
:key=
"key"
action=
""
:show-file-list=
"false"
:multiple=
"true"
:auto-upload=
"false"
:on-change=
"handleChange"
accept=
".JPG, .PNG, .JPEG,.jpg, .png, .jpeg"
>
<el-button
icon=
"el-icon-upload"
type=
"primary"
v-if=
"ableOperation"
>
上传
</el-button>
<el-button
icon=
"el-icon-upload"
type=
"primary"
:loading=
"upDateloading"
v-if=
"ableOperation"
>
上传
</el-button>
</el-upload>
<!-- 左移右移 -->
<el-button
type=
"primary"
@
click=
"handleMove('left')"
v-if=
"ableOperation"
>
左移
</el-button>
<el-button
type=
"primary"
@
click=
"handleMove('right')"
v-if=
"ableOperation"
>
右移
</el-button>
<el-button
type=
"primary"
@
click=
"handleMove('left')"
v-if=
"ableOperation
&& thumbnailImages.length>0
"
>
左移
</el-button>
<el-button
type=
"primary"
@
click=
"handleMove('right')"
v-if=
"ableOperation
&& thumbnailImages.length>0
"
>
右移
</el-button>
<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"
>
...
...
@@ -73,6 +73,7 @@
},
data
()
{
return
{
upDateloading
:
false
,
loading
:
false
,
key
:
0
,
isScan
:
false
,
...
...
@@ -288,6 +289,7 @@
this
.
key
++
return
;
}
this
.
upDateloading
=
true
formData
.
append
(
"bsmSj"
,
this
.
previewImg
.
bsmSj
);
formData
.
append
(
"bsmSlsq"
,
this
.
previewImg
.
bsmSlsq
);
if
(
this
.
previewImg
.
imgList
.
length
>
0
)
{
...
...
@@ -300,6 +302,7 @@
message
:
'上传成功!'
,
type
:
'success'
})
this
.
upDateloading
=
false
this
.
$refs
.
upload
.
clearFiles
();
this
.
maxFileLength
=
0
}
...
...
src/views/registerBook/components/clxx/dialog/imagePreview.vue
View file @
f7cf8c9
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-
09-19 09:55:41
* @LastEditTime: 2023-
10-12 09:56:45
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -23,19 +23,6 @@
<div
class=
"thumb-wrap"
>
<div
class=
"thumb-wrap-button"
>
<el-button
type=
"primary"
@
click=
"clickImage"
v-if=
"previewImg.imgList.length>0"
>
(放大) 显示(缩小)
</el-button>
<!--
<el-upload
class=
"fileUpdate"
ref=
"upload"
:key=
"key"
action=
""
:show-file-list=
"false"
:multiple=
"true"
:auto-upload=
"false"
:on-change=
"handleChange"
accept=
".JPG, .PNG, .JPEG,.jpg, .png, .jpeg"
>
<el-button
icon=
"el-icon-upload"
type=
"primary"
v-if=
"ableOperation"
>
上传
</el-button>
</el-upload>
-->
<!--
<el-button
type=
"primary"
@
click=
"handleMove('left')"
v-if=
"ableOperation"
>
左移
</el-button>
<el-button
type=
"primary"
@
click=
"handleMove('right')"
v-if=
"ableOperation"
>
右移
</el-button>
-->
<!--
<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"
:loading=
"loading"
>
{{
scanTitle
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleViewScan"
v-if=
"isScan && ableOperation"
>
拍照
</el-button>
</div>
-->
</div>
<ul>
<li
v-for=
"(img, index) in thumbnailImages"
:key=
"index"
:class=
"
{ active: previewImg.index === index }"
...
...
src/views/xxba/components/clxx/dialog/imagePreview.vue
View file @
f7cf8c9
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-
09-14 16:24:07
* @LastEditTime: 2023-
10-12 09:55:54
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -26,11 +26,11 @@
<el-upload
class=
"fileUpdate"
ref=
"upload"
:key=
"key"
action=
""
:show-file-list=
"false"
:multiple=
"true"
:auto-upload=
"false"
:on-change=
"handleChange"
accept=
".JPG, .PNG, .JPEG,.jpg, .png, .jpeg"
>
<el-button
icon=
"el-icon-upload"
type=
"primary"
v-if=
"ableOperation"
>
上传
</el-button>
<el-button
icon=
"el-icon-upload"
type=
"primary"
:loading=
"upDateloading"
v-if=
"ableOperation"
>
上传
</el-button>
</el-upload>
<!-- 左移右移 -->
<el-button
type=
"primary"
@
click=
"handleMove('left')"
v-if=
"ableOperation"
>
左移
</el-button>
<el-button
type=
"primary"
@
click=
"handleMove('right')"
v-if=
"ableOperation"
>
右移
</el-button>
<el-button
type=
"primary"
@
click=
"handleMove('left')"
v-if=
"ableOperation
&& thumbnailImages.length>0
"
>
左移
</el-button>
<el-button
type=
"primary"
@
click=
"handleMove('right')"
v-if=
"ableOperation
&& thumbnailImages.length>0
"
>
右移
</el-button>
<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"
>
...
...
@@ -73,6 +73,7 @@
},
data
()
{
return
{
upDateloading
:
false
,
loading
:
false
,
key
:
0
,
isScan
:
false
,
...
...
@@ -292,6 +293,7 @@
this
.
key
++
return
;
}
this
.
upDateloading
=
true
formData
.
append
(
"bsmMaterial"
,
this
.
previewImg
.
bsmMaterial
);
if
(
this
.
previewImg
.
imgList
.
length
>
0
)
{
formData
.
append
(
"index"
,
this
.
previewImg
.
imgList
[
this
.
previewImg
.
index
].
sxh
);
...
...
@@ -303,6 +305,7 @@
message
:
'上传成功!'
,
type
:
'success'
})
this
.
upDateloading
=
false
this
.
$refs
.
upload
.
clearFiles
();
this
.
maxFileLength
=
0
}
...
...
Please
register
or
sign in
to post a comment