Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
e05c31be
提交
e05c31be
authored
6月 03, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: viewer module bug修复
上级
250682ef
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
17 行增加
和
75 行删除
+17
-75
fileList.vue
client/src/modules/viewer/components/common/fileList.vue
+0
-70
chapterRead.vue
client/src/modules/viewer/components/read/chapterRead.vue
+1
-1
courseRead.vue
client/src/modules/viewer/components/read/courseRead.vue
+1
-1
fileList.vue
client/src/modules/viewer/components/read/fileList.vue
+9
-2
chapterTest.vue
client/src/modules/viewer/components/work/chapterTest.vue
+6
-1
没有找到文件。
client/src/modules/viewer/components/common/fileList.vue
deleted
100644 → 0
浏览文件 @
250682ef
<
template
>
<div>
<ul
class=
"file-list"
v-if=
"files.length"
>
<li
class=
"file-list-item"
v-for=
"file in files"
:key=
"file.id"
>
<a
:href=
"file.file_url"
target=
"_blank"
>
<i
class=
"el-icon-document"
></i>
<div
v-html=
"file.file_name"
></div>
</a>
<span
v-if=
"file.file_size"
>
{{
file
.
file_size
}}
</span>
<a
:href=
"file.file_url"
:download=
"file.file_name"
target=
"_blank"
>
<el-tooltip
effect=
"dark"
content=
"下载"
>
<i
class=
"el-icon-download"
></i>
</el-tooltip>
</a>
</li>
</ul>
<div
class=
"empty"
v-else
>
<slot
name=
"empty"
>
暂无课程资料
</slot>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'FilePanel'
,
props
:
{
// 标题
title
:
{
type
:
String
,
default
:
'课程资料'
},
// 文件列表
files
:
{
type
:
Array
,
default
:
()
=>
[]
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.file-list
{
padding
:
0
;
}
.file-list-item
{
display
:
flex
;
font-size
:
16px
;
padding
:
20px
30px
;
margin-bottom
:
10px
;
background-color
:
#fff
;
list-style
:
none
;
border-radius
:
32px
;
justify-content
:
space-between
;
a
{
display
:
flex
;
align-items
:
center
;
text-decoration
:
none
;
color
:
#333
;
white-space
:
nowrap
;
&
:hover
{
color
:
#b49441
;
}
::v-deep
*
{
margin
:
0
;
padding
:
0
;
}
}
}
.empty
{
font-size
:
18px
;
line-height
:
80px
;
background-color
:
#fff
;
text-align
:
center
;
border-radius
:
40px
;
}
</
style
>
client/src/modules/viewer/components/read/chapterRead.vue
浏览文件 @
e05c31be
...
...
@@ -8,7 +8,7 @@
<
script
>
// components
import
Container
from
'../common/container.vue'
import
FileList
from
'.
./common
/fileList.vue'
import
FileList
from
'./fileList.vue'
// 章节阅读资料
export
default
{
...
...
client/src/modules/viewer/components/read/courseRead.vue
浏览文件 @
e05c31be
...
...
@@ -8,7 +8,7 @@
<
script
>
// components
import
Container
from
'../common/container.vue'
import
FileList
from
'.
./common
/fileList.vue'
import
FileList
from
'./fileList.vue'
// 课程阅读资料
export
default
{
...
...
client/src/modules/viewer/components/read/fileList.vue
浏览文件 @
e05c31be
...
...
@@ -4,9 +4,9 @@
<li
class=
"file-list-item"
v-for=
"file in files"
:key=
"file.id"
>
<a
:href=
"file.file_url"
target=
"_blank"
>
<i
class=
"el-icon-document"
></i>
{{
file
.
file_name
}}
<div
v-html=
"file.file_name"
></div>
</a>
<
!--
<span
v-if=
"file.file_size"
>
{{
file
.
file_size
}}
K
</span>
--
>
<
span
v-if=
"file.file_size"
>
{{
file
.
file_size
}}
</span
>
<a
:href=
"file.file_url"
:download=
"file.file_name"
target=
"_blank"
>
<el-tooltip
effect=
"dark"
content=
"下载"
>
<i
class=
"el-icon-download"
></i>
...
...
@@ -46,11 +46,18 @@ export default {
border-radius
:
32px
;
justify-content
:
space-between
;
a
{
display
:
flex
;
align-items
:
center
;
text-decoration
:
none
;
color
:
#333
;
white-space
:
nowrap
;
&
:hover
{
color
:
#b49441
;
}
::v-deep
*
{
margin
:
0
;
padding
:
0
;
}
}
}
.empty
{
...
...
client/src/modules/viewer/components/work/chapterTest.vue
浏览文件 @
e05c31be
...
...
@@ -247,13 +247,18 @@ export default {
},
// 请求提交接口
handleSubmitRequest
(
params
)
{
api
.
sbumitChapterExam
(
params
).
then
(
response
=>
{
api
.
sbumitChapterExam
(
params
)
.
then
(
response
=>
{
if
(
response
.
status
)
{
this
.
getDetail
()
}
else
{
this
.
$message
.
error
(
response
.
data
.
error
)
}
})
.
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
)
})
}
},
beforeMount
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论