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
c7b84eb4
authored
2023-07-28 12:01:03 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
108900bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/components/imagePreview.vue
src/views/components/imagePreview.vue
View file @
c7b84eb
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-
04 16:07:37
* @LastEditTime: 2023-07-
28 12:00:45
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -26,7 +26,7 @@
<el-upload
class=
"fileUpdate"
ref=
"upload"
action=
""
:show-file-list=
"false"
:multiple=
"true"
:auto-upload=
"false"
:on-change=
"handleChange"
accept=
".JPG, .PNG, .JPEG,.jpg, .png, .jpeg"
:before-upload=
"beforeUpload"
>
<el-button
icon=
"el-icon-upload"
type=
"primary"
v-if=
"ableOperation"
>
上传
</el-button>
<el-button
icon=
"el-icon-upload"
type=
"primary"
v-if=
"ableOperation"
>
上传
1
</el-button>
</el-upload>
<el-button
type=
"primary"
icon=
"el-icon-delete-solid"
@
click=
"handleDelete"
v-if=
"thumbnailImages.length>0 && ableOperation"
>
删除
</el-button>
...
...
@@ -253,8 +253,8 @@
* @author: renchao
*/
async
handleChange
(
file
,
files
)
{
// 清空 fileList 数组
debugger
// 清空 fileList 数组
let
length
=
files
.
length
;
this
.
maxLength
=
Math
.
max
(
length
,
this
.
maxLength
)
this
.
$refs
.
upload
.
clearFiles
();
...
...
Please
register
or
sign in
to post a comment