Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
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
3e72ae0d
authored
2020-12-09 16:17:34 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(fjcl):取消上传文件现限制
1 parent
9c0ce83f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/zd/fjcl/fjcl.vue
src/views/zd/fjcl/fjcl.vue
View file @
3e72ae0
...
...
@@ -10,7 +10,6 @@
:on-error=
"uploadError"
:show-file-list=
"false"
multiple
:limit=
"3"
:on-exceed=
"handleExceed"
>
<el-button
size=
"small"
type=
"primary"
>
上传
</el-button>
...
...
@@ -157,7 +156,8 @@
},
handleExceed
(
files
,
fileList
)
{
console
.
log
(
fileList
)
this
.
$message
.
warning
(
`当前限制选择 3 个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
files
.
length
+
fileList
.
length
}
个文件`
);
// this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
this
.
$message
.
warning
(
"上传失败"
)
},
beforeRemove
(
file
,
fileList
)
{
return
this
.
$confirm
(
`确定移除
${
file
.
name
}
?`
);
...
...
Please
register
or
sign in
to post a comment