Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
79da6fcd
提交
79da6fcd
authored
8月 17, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
样式调整
上级
f432d31c
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
15 行删除
+35
-15
BatchImportVideo.vue
src/modules/resource/video/components/BatchImportVideo.vue
+1
-1
UploadMultipleVideo.vue
...modules/resource/video/components/UploadMultipleVideo.vue
+6
-12
VideoDetail.vue
src/modules/resource/video/components/VideoDetail.vue
+28
-2
没有找到文件。
src/modules/resource/video/components/BatchImportVideo.vue
浏览文件 @
79da6fcd
...
@@ -53,7 +53,7 @@ const handleClose = (val: any) => {
...
@@ -53,7 +53,7 @@ const handleClose = (val: any) => {
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<el-dialog
title=
"批量导入视频"
:close-on-click-modal=
"false"
:before-close=
"handleCancel"
>
<el-dialog
title=
"批量导入视频"
:close-on-click-modal=
"false"
:before-close=
"handleCancel"
width=
"45vw"
>
<el-form
:model=
"form"
label-suffix=
":"
>
<el-form
:model=
"form"
label-suffix=
":"
>
<el-form-item
label=
"视频分类"
prop=
"classification"
>
<el-form-item
label=
"视频分类"
prop=
"classification"
>
<el-tree-select
<el-tree-select
...
...
src/modules/resource/video/components/UploadMultipleVideo.vue
浏览文件 @
79da6fcd
...
@@ -135,14 +135,13 @@ defineExpose({ uploader, fileList: $$(fileList) })
...
@@ -135,14 +135,13 @@ defineExpose({ uploader, fileList: $$(fileList) })
<input
accept=
".mp4"
type=
"file"
id=
"fileUpload"
multiple
@
change=
"fileChange"
/>
<input
accept=
".mp4"
type=
"file"
id=
"fileUpload"
multiple
@
change=
"fileChange"
/>
</div>
</div>
<div
class=
"tips"
>
推荐视频格式:帧率为25fps\输出码率为4M\输出格式为mp4,建议采用格式工厂等工具处理后上传。
</div>
<div
class=
"tips"
>
推荐视频格式:帧率为25fps\输出码率为4M\输出格式为mp4,建议采用格式工厂等工具处理后上传。
</div>
<div
v-for=
"(item, index) in fileList.slice(0, 3)"
:key=
"index"
>
<div
v-for=
"(item, index) in fileList"
:key=
"index"
>
<div
class=
"video-info"
>
<div>
<span
class=
"name"
>
{{
item
.
file
?.
name
}}
</span>
<span>
{{
item
.
file
?.
name
}}
</span>
<el-progress
style=
"width: 200px"
:percentage=
"percentage(item.loaded)"
class=
"view"
/>
<el-progress
style=
"width: 200px"
:percentage=
"percentage(item.loaded)"
/>
</div>
</div>
</div>
</div>
<el-link
type=
"primary"
v-if=
"fileList.length > 3"
@
click=
"handleView"
<el-link
:underline=
"false"
type=
"primary"
v-if=
"fileList.length > 3"
@
click=
"handleView"
>
共
{{
fileList
.
length
}}
个文件,查看更多
</el-link
>
共
{{
fileList
.
length
}}
个文件,查看更多
</el-link
>
>
</div>
</div>
...
@@ -189,20 +188,15 @@ defineExpose({ uploader, fileList: $$(fileList) })
...
@@ -189,20 +188,15 @@ defineExpose({ uploader, fileList: $$(fileList) })
}
}
.video-info
{
.video-info
{
display
:
flex
;
display
:
flex
;
margin-top
:
10px
;
.name
{
.name
{
color
:
#333333
;
color
:
#333333
;
font-size
:
16px
;
line-height
:
100%
;
}
.name1
{
color
:
#aa1941
;
font-size
:
14px
;
font-size
:
14px
;
line-height
:
1
.5
;
line-height
:
1
.5
;
}
}
.view
{
.view
{
font-size
:
16px
;
font-size
:
16px
;
line-height
:
100%
;
line-height
:
100%
;
color
:
#399ee8
;
margin-left
:
20px
;
margin-left
:
20px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
...
src/modules/resource/video/components/VideoDetail.vue
浏览文件 @
79da6fcd
...
@@ -39,14 +39,20 @@ const handleSizeChange = (val: any) => {
...
@@ -39,14 +39,20 @@ const handleSizeChange = (val: any) => {
const
handleCurrentChange
=
(
val
:
any
)
=>
{
const
handleCurrentChange
=
(
val
:
any
)
=>
{
page
.
currentPage
=
val
page
.
currentPage
=
val
}
}
function
percentage
(
value
:
number
)
{
return
parseFloat
((
value
?
value
*
100
:
0
).
toFixed
(
2
))
}
</
script
>
</
script
>
<
template
>
<
template
>
<el-dialog
title=
"更多视频文件"
:before-close=
"handleCancel"
>
<el-dialog
title=
"更多视频文件"
:before-close=
"handleCancel"
width=
"30vw"
>
<div
<div
v-for=
"(item, index) in props.videoList.slice((page.currentPage - 1) * page.size, page.currentPage * page.size)"
v-for=
"(item, index) in props.videoList.slice((page.currentPage - 1) * page.size, page.currentPage * page.size)"
:key=
"index"
:key=
"index"
>
>
{{
item
.
file
.
name
}}
<div
class=
"video-info"
>
<span
class=
"name"
>
{{
item
.
file
?.
name
}}
</span>
<el-progress
style=
"width: 200px"
:percentage=
"percentage(item.loaded)"
class=
"view"
/>
</div>
</div>
</div>
<el-pagination
<el-pagination
v-model:currentPage=
"currentPage"
v-model:currentPage=
"currentPage"
...
@@ -60,3 +66,23 @@ const handleCurrentChange = (val: any) => {
...
@@ -60,3 +66,23 @@ const handleCurrentChange = (val: any) => {
</el-pagination>
</el-pagination>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
.video-info
{
display
:
flex
;
margin-top
:
10px
;
.name
{
color
:
#333333
;
font-size
:
14px
;
line-height
:
1
.5
;
}
.view
{
font-size
:
16px
;
line-height
:
100%
;
margin-left
:
20px
;
cursor
:
pointer
;
}
}
:deep
(
.el-pagination
)
{
margin-top
:
20px
;
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论