Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
06bec217
Commit
06bec217
authored
Oct 16, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
峰会回顾压缩包格式限制
parent
71cba7fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
reviewPopup.vue
src/views/summit/model/reviewPopup.vue
+7
-4
No files found.
src/views/summit/model/reviewPopup.vue
View file @
06bec217
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
v-if=
"$utils.isString(form.videoPath) && !$utils.isEmpty(form.videoPath) && !imgFlag"
v-if=
"$utils.isString(form.videoPath) && !$utils.isEmpty(form.videoPath) && !imgFlag"
:src=
"form.videoPath"
:src=
"form.videoPath"
style=
"width:300px;max-height:300px;"
style=
"width:300px;max-height:300px;"
/>
-->
/>
-->
<!--
<i
<!--
<i
v-else-if=
"!imgFlag"
v-else-if=
"!imgFlag"
class=
"el-icon-plus avatar-uploader-icon"
class=
"el-icon-plus avatar-uploader-icon"
...
@@ -168,11 +168,14 @@ export default {
...
@@ -168,11 +168,14 @@ export default {
}
}
},
},
beforeAvatarUpload
(
file
)
{
beforeAvatarUpload
(
file
)
{
const
zip
=
file
.
type
===
'application/zip'
var
index
=
file
.
name
.
lastIndexOf
(
'.'
)
if
(
!
zip
)
{
var
ext
=
file
.
name
.
substr
(
index
+
1
)
console
.
log
(
ext
)
if
(
ext
!=
'zip'
)
{
this
.
$message
.
error
(
'上传压缩包只能是 zip 格式!'
)
this
.
$message
.
error
(
'上传压缩包只能是 zip 格式!'
)
return
false
}
}
return
zip
return
true
},
},
videoUpload
(
file
)
{
videoUpload
(
file
)
{
const
isJPG
=
file
.
type
===
'video/mp4'
const
isJPG
=
file
.
type
===
'video/mp4'
...
...
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