Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
study-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
study-platform
Commits
a42bcdbf
Commit
a42bcdbf
authored
Mar 17, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部门新增
parent
e12953c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
study-manager-ui/admin/src/views/notice/study/view.vue
study-manager-ui/admin/src/views/notice/study/view.vue
+12
-1
No files found.
study-manager-ui/admin/src/views/notice/study/view.vue
View file @
a42bcdbf
...
...
@@ -31,6 +31,13 @@
<div
v-if=
"isImage"
>
<img
:src=
"form.filePath"
alt=
"图片描述"
>
</div>
<div
v-else-if=
"isVideo"
>
<video
id=
"myVideo"
controls
>
<source
:src=
"form.filePath"
type=
"video/mp4"
>
</video>
</div>
<div
v-else
>
<el-link
type=
"primary"
:href=
"form.filePath"
>
{{
form
.
fileName
}}
</el-link>
</div>
...
...
@@ -55,7 +62,10 @@
const
extension
=
this
.
form
.
fileName
.
split
(
'
.
'
).
pop
().
toLowerCase
();
if
([
'
jpg
'
,
'
jpeg
'
,
'
png
'
,
'
gif
'
].
indexOf
(
extension
)
!==
-
1
)
{
this
.
isImage
=
true
;
}
else
{
}
else
if
([
'
mp4
'
].
indexOf
(
extension
)
!==
-
1
)
{
this
.
isVideo
=
true
}
else
{
this
.
isImage
=
false
;
}
},
...
...
@@ -63,6 +73,7 @@
data
()
{
return
{
isImage
:
false
,
isVideo
:
false
,
size
:
"
small
"
,
column
:
2
,
toString
:[
...
...
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