Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-Connect-Pre-Clearance
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2025-01-15 17:12:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4c81b0a4739316b54d3b93da0ec222a60834446b
4c81b0a4
1 parent
41666991
校验逻辑修改
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
web/src/views/uploadDetail/uploadFile.vue
web/src/views/uploadDetail/uploadFile.vue
View file @
4c81b0a
...
...
@@ -175,7 +175,7 @@ export default {
let fileSum = 0;
let fileSize = 0;
let fileNameArray = [];
let errorTip =
""
;
let errorTip =
this.errorTip
;
this.fileData.forEach((item) => {
fileSum = Number(fileSum) + Number(item.files.length);
item.files.forEach((file) => {
...
...
@@ -185,16 +185,17 @@ export default {
});
if (fileSum + 1 > 100) {
if (this.errorTip == "") {
errorTip =
"The total number of uploaded files should not exceed 100 files.";
this.$message.warning(this.errorTip)
;
errorTip =
"The total number of uploaded files should not exceed 100 files."
;
}
} else if ((Number(fileSize) + Number(val.size)) / 1024 / 1024 > 95) {
if (this.errorTip == "") {
errorTip = "The total size of all uploaded files should not exceed 95MB.";
errorTip =
"The total size of all uploaded files should not exceed 95MB.";
}
} else if (fileNameArray.includes(val.name)) {
if (this.errorTip == "") {
errorTip =
"Duplicate file name uploaded!"
;
errorTip =
`'${val.name}'.Duplicate file name uploaded!`
;
}
}
...
...
Please
register
or
login
to post a comment