Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
national_museum_vod
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qzhxx
national_museum_vod
Commits
3ff9b9fc
Commit
3ff9b9fc
authored
Apr 08, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
03b2e22c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
uploadAudio.vue
src/page/content/components/uploadVue/uploadAudio.vue
+2
-2
uploadDatum.vue
src/page/content/components/uploadVue/uploadDatum.vue
+4
-6
uploadFile.vue
src/page/content/components/uploadVue/uploadFile.vue
+4
-4
organ.vue
src/page/system/organ.vue
+1
-1
No files found.
src/page/content/components/uploadVue/uploadAudio.vue
View file @
3ff9b9fc
...
...
@@ -76,9 +76,9 @@ export default {
this
.
filedata
.
append
(
'file'
,
file
.
file
)
},
beforeAvatarUpload
(
file
)
{
const
isLt5M
=
file
.
size
/
1024
/
1024
<
5
;
const
isLt5M
=
file
.
size
/
1024
<
1
;
if
(
!
isLt5M
)
{
this
.
$message
.
error
(
"上传文件大小不能超过
5M
B!"
);
this
.
$message
.
error
(
"上传文件大小不能超过
1G
B!"
);
}
return
isLt5M
;
}
...
...
src/page/content/components/uploadVue/uploadDatum.vue
View file @
3ff9b9fc
...
...
@@ -69,18 +69,16 @@ export default {
console
.
log
(
err
);
_this
.
$message
.
error
(
err
.
msg
||
err
.
message
);
});
},
uploadFile
(
file
)
{
this
.
filedata
.
append
(
'file'
,
file
.
file
)
},
beforeAvatarUpload
(
file
)
{
const
isLt
5M
=
file
.
size
/
1024
/
1024
<
5
;
if
(
!
isLt
5M
)
{
this
.
$message
.
error
(
"上传文件大小不能超过
5M
B!"
);
const
isLt
10G
=
file
.
size
/
1024
<
10
;
if
(
!
isLt
10G
)
{
this
.
$message
.
error
(
"上传文件大小不能超过
10G
B!"
);
}
return
isLt
5M
;
return
isLt
10G
;
}
}
};
...
...
src/page/content/components/uploadVue/uploadFile.vue
View file @
3ff9b9fc
...
...
@@ -76,11 +76,11 @@ export default {
this
.
filedata
.
append
(
'file'
,
file
.
file
)
},
beforeAvatarUpload
(
file
)
{
const
isLt
5M
=
file
.
size
/
1024
/
1024
<
5
;
if
(
!
isLt
5M
)
{
this
.
$message
.
error
(
"上传文件大小不能超过
5M
B!"
);
const
isLt
10G
=
file
.
size
/
1024
<
10
;
if
(
!
isLt
10G
)
{
this
.
$message
.
error
(
"上传文件大小不能超过
10G
B!"
);
}
return
isLt
5M
;
return
isLt
10G
;
},
handleRequest
(
file
)
{
// let formData = new FormData();
...
...
src/page/system/organ.vue
View file @
3ff9b9fc
...
...
@@ -393,4 +393,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment