Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
524b5aca
提交
524b5aca
authored
1月 26, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
1330998e
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
6 行删除
+7
-6
CourseChapter.vue
src/pages/course/learn/components/CourseChapter.vue
+6
-6
result.vue
src/pages/exam/courseExam/chapter/result.vue
+1
-0
没有找到文件。
src/pages/course/learn/components/CourseChapter.vue
浏览文件 @
524b5aca
...
...
@@ -9,15 +9,15 @@
{{
progressText
(
subItem
.
video_progress
)
}}
</div>
<div
class=
"buttons"
v-if=
"subItem.type === 9"
>
<el-button
round
size=
"mini"
v-if=
"
[0, 3, 100].includes(subItem.status)
"
@
click=
"toExamPage(subItem, 1)"
>
<el-button
round
size=
"mini"
v-if=
"
subItem.status === 100
"
@
click=
"toExamPage(subItem, 1)"
>
测试
</el-button>
<
!--
<
el-button
round
size=
"mini"
v-if=
"[0, 3].includes(subItem.status)"
@
click=
"toExamPage(subItem, 2)"
>
<el-button
round
size=
"mini"
v-if=
"[0, 3].includes(subItem.status)"
@
click=
"toExamPage(subItem, 2)"
>
继续测试
</el-button>
-->
<template
v-
else
>
</el-button>
<template
v-
if=
"[1, 2].includes(subItem.status)"
>
<!--
<el-button
round
size=
"mini"
@
click=
"toExamPage(subItem, 1)"
>
重新测试
</el-button>
-->
<el-button
round
size=
"mini"
@
click=
"toExamPage(subItem,
2
)"
>
报告
</el-button>
<el-button
round
size=
"mini"
@
click=
"toExamPage(subItem,
3
)"
>
报告
</el-button>
</
template
>
</div>
</li>
...
...
@@ -55,7 +55,7 @@ export default {
}
},
toExamPage
(
data
,
type
)
{
const
path
=
type
===
2
?
'/course/chapter/result'
:
'/course/exam/chapter'
const
path
=
type
===
3
?
'/course/chapter/result'
:
'/course/exam/chapter'
this
.
$router
.
push
({
path
:
path
,
query
:
{
course_id
:
this
.
courseId
,
chapter_id
:
data
.
id
,
type
}
...
...
src/pages/exam/courseExam/chapter/result.vue
浏览文件 @
524b5aca
...
...
@@ -63,6 +63,7 @@ export default {
goPage
(
param
)
{
const
urlParam
=
this
.
$route
.
query
urlParam
.
id
=
param
urlParam
.
type
=
2
this
.
$router
.
push
({
path
:
'/course/exam/chapter'
,
query
:
urlParam
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论