Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
ca43c4fb
提交
ca43c4fb
authored
12月 11, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
国际化项目增加课程考试
上级
44a1528d
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
35 行删除
+35
-35
CourseAction.js
src/action/CourseAction.js
+27
-27
chapterWork.vue
src/modules/viewer/components/work/chapterWork.vue
+1
-1
index.vue
src/modules/viewer/index.vue
+7
-7
没有找到文件。
src/action/CourseAction.js
浏览文件 @
ca43c4fb
...
@@ -210,33 +210,33 @@ export default class CourseAction extends BaseACTION {
...
@@ -210,33 +210,33 @@ export default class CourseAction extends BaseACTION {
// cid: cid,
// cid: cid,
// type: 102
// type: 102
// })
// })
//
if (cur.course_examination) {
if
(
cur
.
course_examination
)
{
//
let courseExamChildren = []
let
courseExamChildren
=
[]
//
if (data.exist_examination && data.exist_examination.length > 1) {
if
(
data
.
exist_examination
&&
data
.
exist_examination
.
length
>
1
)
{
//
courseExamChildren = data.exist_examination.map((item, index) => {
courseExamChildren
=
data
.
exist_examination
.
map
((
item
,
index
)
=>
{
//
const map = ['一', '二', '三']
const
map
=
[
'一'
,
'二'
,
'三'
]
//
return {
return
{
//
name: `第${map[index]}次考试`,
name
:
`第
${
map
[
index
]}
次考试`
,
//
id: 'course_exam',
id
:
'course_exam'
,
//
offset: index,
offset
:
index
,
//
sid: sid,
sid
:
sid
,
//
cid: cid,
cid
:
cid
,
//
examId: cur.course_examination,
examId
:
cur
.
course_examination
,
//
type: 101
type
:
101
//
}
}
//
})
})
//
}
}
//
json.tabs1ChapterList.course.push({
json
.
tabs1ChapterList
.
course
.
push
({
//
title: _vIn.$t('action.courseAction.courseExam'),
title
:
_vIn
.
$t
(
'action.courseAction.courseExam'
),
//
isUp: true,
isUp
:
true
,
//
chapters: courseExamChildren,
chapters
:
courseExamChildren
,
//
id: 'course_exam',
id
:
'course_exam'
,
//
sid: sid,
sid
:
sid
,
//
cid: cid,
cid
:
cid
,
//
examId: cur.course_examination,
examId
:
cur
.
course_examination
,
//
type: 101
type
:
101
//
})
})
//
}
}
/* 课程考核 考核标准文案读取 */
/* 课程考核 考核标准文案读取 */
json
.
tabs3richTest
=
cur
.
course_evaluation
json
.
tabs3richTest
=
cur
.
course_evaluation
// callback(json) // 可以不使用callback 因为使用then
// callback(json) // 可以不使用callback 因为使用then
...
...
src/modules/viewer/components/work/chapterWork.vue
浏览文件 @
ca43c4fb
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
template
v
-
else
-
if
=
"detail.created_time"
>
<
template
v
-
else
-
if
=
"detail.created_time"
>
<
p
class
=
"help"
>
{{
$t
(
'viewerWork.
deadline
'
,
{
time
:
detail
.
created_time
}
)
}}
<
/p
>
<
p
class
=
"help"
>
{{
$t
(
'viewerWork.
submitted
'
,
{
time
:
detail
.
created_time
}
)
}}
<
/p
>
<
template
v
-
if
=
"detail.updated_time && detail.updated_time !== detail.created_time"
>
<
template
v
-
if
=
"detail.updated_time && detail.updated_time !== detail.created_time"
>
<
p
class
=
"help"
>
{{
$t
(
'viewerWork.submitDateTime'
)
}}
:
{{
detail
.
updated_time
}}
<
/p
>
<
p
class
=
"help"
>
{{
$t
(
'viewerWork.submitDateTime'
)
}}
:
{{
detail
.
updated_time
}}
<
/p
>
<
/template
>
<
/template
>
...
...
src/modules/viewer/index.vue
浏览文件 @
ca43c4fb
...
@@ -116,13 +116,13 @@ export default {
...
@@ -116,13 +116,13 @@ export default {
]
]
}
}
// 课程考试
// 课程考试
//
if (this.detail.course_examination) {
if
(
this
.
detail
.
course_examination
)
{
//
customeChapter.children.push({
customeChapter
.
children
.
push
({
//
name: this.$t('viewerMain.courseExam'),
name
:
this
.
$t
(
'viewerMain.courseExam'
),
//
id: 'course_exam',
id
:
'course_exam'
,
//
type: 101
type
:
101
//
})
})
//
}
}
chapters
.
push
(
customeChapter
)
chapters
.
push
(
customeChapter
)
return
chapters
return
chapters
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论