Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
751e997f
提交
751e997f
authored
4月 17, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wmp问题修改
上级
56e253ac
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
18 行增加
和
10 行删除
+18
-10
CourseAction.js
client/src/action/CourseAction.js
+2
-1
navigation.vue
client/src/components/learnSysLayout/navigation.vue
+2
-3
course.vue
client/src/pages/learn/course.vue
+4
-2
courseDetail.vue
client/src/pages/learn/courseDetail.vue
+10
-4
没有找到文件。
client/src/action/CourseAction.js
浏览文件 @
751e997f
...
...
@@ -53,7 +53,8 @@ export default class CourseAction extends BaseACTION {
status
:
_cur
.
is_enabled
?
_vIn
.
$t
(
'action.courseAction.publish'
)
:
_vIn
.
$t
(
'action.courseAction.noPublish'
),
time
:
cur
.
begin_date
.
split
(
' '
)[
0
]
+
_vIn
.
$t
(
'action.courseAction.to'
)
+
cur
.
end_date
.
split
(
' '
)[
0
],
myStatus
:
''
,
progress
:
cur
.
video_progress
progress
:
cur
.
video_progress
,
course_type
:
cur
.
course_type
})
}
// callback(json) // 可以不使用callback 因为使用then
...
...
client/src/components/learnSysLayout/navigation.vue
浏览文件 @
751e997f
...
...
@@ -25,13 +25,12 @@ export default {
components
:
{},
data
()
{
return
{
name
:
window
.
G
.
UserInfo
.
student_info
.
personal_name
||
'你好'
,
name
:
window
.
G
.
UserInfo
.
student_info
.
personal_name
||
window
.
G
.
UserInfo
.
nickname
||
'你好'
,
num
:
0
}
},
mounted
()
{
console
.
log
(
window
.
G
.
UserInfo
)
this
.
name
=
window
.
G
.
UserInfo
.
student_info
.
personal_name
||
'你好'
this
.
name
=
window
.
G
.
UserInfo
.
student_info
.
personal_name
||
window
.
G
.
UserInfo
.
nickname
||
'你好'
},
methods
:
{
goNotify
()
{
...
...
client/src/pages/learn/course.vue
浏览文件 @
751e997f
...
...
@@ -102,7 +102,9 @@ export default {
]
}],
homeList
:
[],
// 从后台请求
param
:
{},
param
:
{
course_type
:
1
},
timeInterval
:
null
,
newLiveMsg
:
{}
}
...
...
@@ -138,7 +140,7 @@ export default {
},
goCourseContent
(
e
)
{
const
cid
=
e
.
currentTarget
.
dataset
.
cid
this
.
$router
.
push
({
path
:
`/app/learn/course-detail/
${
cid
}
`
})
this
.
$router
.
push
({
path
:
`/app/learn/course-detail/
${
cid
}
?v=
${
this
.
homeList
[
0
].
course_type
}
`
})
},
getAjaxList
(
bool
,
str
)
{
cAction
.
Course
.
getCourseList
(
bool
,
this
.
param
).
then
(
json
=>
{
...
...
client/src/pages/learn/courseDetail.vue
浏览文件 @
751e997f
...
...
@@ -63,7 +63,7 @@
</template>
</div>
</el-tab-pane>
<el-tab-pane
label=
"课程讨论"
name=
"2"
>
<el-tab-pane
label=
"课程讨论"
name=
"2"
v-if=
"isCourseDis === '1'"
>
<
template
v-if=
"!isPublicShow"
>
<div
class=
'pub-ques'
>
<div
class=
'ask'
>
...
...
@@ -106,11 +106,11 @@
<el-button
type=
"text"
@
click=
'gobackDiscuss'
>
返回问题列表
</el-button>
</div>
<el-form
ref=
"setPublishform"
:model=
"publish"
:rules=
"publishRules"
>
<el-form-item
label=
"
学习计划
"
prop=
"title"
>
<el-input
v-model=
"publish.title"
type=
"text"
placeholder=
"请输入
学习计划
"
></el-input>
<el-form-item
label=
"
问题章节
"
prop=
"title"
>
<el-input
v-model=
"publish.title"
type=
"text"
placeholder=
"请输入
问题章节
"
></el-input>
</el-form-item>
<!-- v-model="publish.content" -->
<div
style=
"line-height: 1.5; font-size: 0.16rem; margin-bottom: 0.2rem;"
>
教材提问
</div>
<div
style=
"line-height: 1.5; font-size: 0.16rem; margin-bottom: 0.2rem;"
>
问题内容
</div>
<textarea
id=
"editor"
></textarea>
<div
style=
"height: 0.2rem;"
></div>
<el-form-item>
...
...
@@ -228,6 +228,7 @@ export default {
},
data
()
{
return
{
isCourseDis
:
this
.
getQueryString
(
'v'
),
domLength
:
0
,
ckeditor
:
null
,
activeName
:
'1'
,
...
...
@@ -782,6 +783,11 @@ export default {
cAction
.
Discuss
.
getCourseDiscussList
(
this
.
cid
,
this
.
sid
,
this
.
param
).
then
(
json
=>
{
this
.
discussList
=
json
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
},
getQueryString
(
name
)
{
const
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
)
const
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
)
if
(
r
!=
null
)
return
unescape
(
r
[
2
]);
return
null
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论