Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-learn
Commits
050a286a
提交
050a286a
authored
8月 01, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
91aa5bac
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
27 行增加
和
6 行删除
+27
-6
CourseListItem.vue
src/modules/course/components/CourseListItem.vue
+3
-1
CourseViewAssess.vue
src/modules/course/components/CourseViewAssess.vue
+1
-1
CourseViewChapter.vue
src/modules/course/components/CourseViewChapter.vue
+16
-2
SuggestionsForm.vue
src/modules/settings/components/SuggestionsForm.vue
+3
-0
User.vue
src/modules/settings/components/User.vue
+4
-2
没有找到文件。
src/modules/course/components/CourseListItem.vue
浏览文件 @
050a286a
...
...
@@ -41,7 +41,9 @@ function handleTop(data: CourseListItemType) {
<el-tooltip
:content=
"!!data.is_top ? '取消置顶' : '置顶'"
>
<div
class=
"course-item__top"
:class=
"
{ 'is-active': !!data.is_top }" @click="handleTop(data)">
</div>
</el-tooltip>
<router-link
:to=
"`/course/view?course_id=$
{data.course_id}
&
semester_id=${data.semester_id}`">
<router-link
:to=
"`/course/view?course_id=$
{data.course_id}
&
semester_id=${data.semester_id}
&
chapter_id=${data.section?.chapter_id}
&
section_id=${data.section?.section_id}
&
resource_id=${data.section?.resource_id}`"
>
<div
class=
"course-item-bd"
>
<div
class=
"course-item-pic"
>
<img
:src=
"data.cover"
/><span
class=
"course-item__type"
>
{{
electiveTypeText
}}
</span>
...
...
src/modules/course/components/CourseViewAssess.vue
浏览文件 @
050a286a
...
...
@@ -93,7 +93,7 @@ onMounted(() => {
<el-table-column
prop=
"watch_video_length"
label=
"学习时长"
width=
"180"
align=
"center"
/>
<el-table-column
prop=
"name"
label=
"百分比"
width=
"180"
align=
"center"
>
<
template
#
default=
"{ row }"
>
<el-progress
:percentage=
"
row.schedule
"
/>
<el-progress
:percentage=
"
parseFloat(row.schedule)
"
/>
</
template
>
</el-table-column>
</el-table>
...
...
src/modules/course/components/CourseViewChapter.vue
浏览文件 @
050a286a
...
...
@@ -11,6 +11,20 @@ let chapterList = $ref<CourseChapterType[]>([])
const
{
query
}
=
useRoute
()
const
courseId
=
$ref
(
query
.
course_id
as
string
)
const
semesterId
=
$ref
(
query
.
semester_id
as
string
)
const
chapterId
=
$ref
(
query
.
chapter_id
as
string
)
const
sectionId
=
$ref
(
query
.
section_id
as
string
)
// 章
const
chapterIds
=
$ref
<
string
[]
>
([])
if
(
chapterId
)
{
chapterIds
.
push
(
chapterId
)
}
// 节
const
sectionIds
=
$ref
<
string
[]
>
([])
if
(
sectionId
)
{
sectionIds
.
push
(
sectionId
)
}
// 获取章节列表
function
fetchList
()
{
if
(
!
courseId
||
!
semesterId
)
{
...
...
@@ -69,10 +83,10 @@ function targetUrl(resource: CourseResourceType, section: CourseSectionType, cha
}
</
script
>
<
template
>
<el-collapse
class=
"course-chapters"
>
<el-collapse
class=
"course-chapters"
v-model=
"chapterIds"
>
<el-collapse-item
:name=
"item.id"
v-for=
"item in chapterList"
:key=
"item.id"
>
<template
#
title
><i
class=
"icon-chapter"
></i>
{{
item
.
name
}}
</
template
>
<el-collapse
class=
"course-sections"
>
<el-collapse
class=
"course-sections"
v-model=
"sectionIds"
>
<el-collapse-item
:name=
"section.id"
v-for=
"section in item.sections"
:key=
"section.id"
>
<
template
#
title
><i
class=
"icon-chapter"
></i>
{{
section
.
name
}}
</
template
>
<ul>
...
...
src/modules/settings/components/SuggestionsForm.vue
浏览文件 @
050a286a
...
...
@@ -45,6 +45,9 @@ const update = () => {
<el-form-item
label=
"上传附件"
prop=
"files"
>
<AppUpload
v-model=
"form.files"
>
<el-button
round
>
点击上传
</el-button>
<template
#
tip
>
(可以上传 word、ppt、png、jpg、zip、rar等资源,多文件请先压缩打包成一个文件后,再上传)
</
template
>
<p>
{{ form.files }}
</p>
</AppUpload>
</el-form-item>
...
...
src/modules/settings/components/User.vue
浏览文件 @
050a286a
...
...
@@ -43,10 +43,12 @@ const update = () => {
style=
"width: 360px"
>
<el-form-item
label=
"昵称"
prop=
"real_name"
>
<el-input
v-model=
"form.real_name"
/>
<el-input
v-model=
"form.real_name"
maxlength=
"10"
/>
</el-form-item>
<el-form-item
label=
"头像"
prop=
"avatar"
>
<AppUpload
v-model=
"form.avatar"
></AppUpload>
<AppUpload
v-model=
"form.avatar"
accept=
"image/*"
>
<template
#
tip
>
支持png,jpg,jpep图片格式,最大为2MB
</
template
>
</AppUpload>
</el-form-item>
<el-form-item
label=
"性别"
prop=
"gender"
>
<el-radio-group
v-model=
"form.gender"
class=
"ml-4"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论