Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
689d30dc
提交
689d30dc
authored
5月 06, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复直播相关的一些问题
上级
80023d9b
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
35 行增加
和
25 行删除
+35
-25
CourseAction.js
client/src/action/CourseAction.js
+1
-0
tableList.vue
client/src/components/comTable/tableList.vue
+4
-1
hall.vue
client/src/pages/affairsHall/hall.vue
+3
-2
course.vue
client/src/pages/learn/course.vue
+7
-7
courseDetail.vue
client/src/pages/learn/courseDetail.vue
+12
-14
list.vue
client/src/pages/mobileLive/list.vue
+8
-1
没有找到文件。
client/src/action/CourseAction.js
浏览文件 @
689d30dc
...
...
@@ -110,6 +110,7 @@ export default class CourseAction extends BaseACTION {
currentVideoProvider
:
cur
.
latest_play_type
||
'1'
,
course
:
cur
.
chapters
.
map
((
_
,
i
)
=>
{
return
{
id
:
_
.
id
,
title
:
_
.
name
,
isUp
:
true
,
chapters
:
_
.
children
.
map
((
__
,
j
)
=>
{
...
...
client/src/components/comTable/tableList.vue
浏览文件 @
689d30dc
...
...
@@ -165,7 +165,10 @@ export default {
this
.
fetchData
()
},
// 刷新
refersh
()
{
refersh
(
isForce
=
false
)
{
if
(
isForce
)
{
this
.
page
.
currentPage
=
1
}
this
.
fetchData
()
}
},
...
...
client/src/pages/affairsHall/hall.vue
浏览文件 @
689d30dc
...
...
@@ -21,7 +21,7 @@
@
click=
"golearningAdd('/app/affairs-hall/again-add/-1')"
>
申请重修
</el-button>
<div
style=
"width: 100%; height: 0.2rem;"
></div>
<table-list
:key=
"affairId"
v-bind=
"tableOption"
v-if=
"affairId"
></table-list>
<table-list
:key=
"affairId"
v-bind=
"tableOption"
v-if=
"affairId"
ref=
"tableList"
></table-list>
</div>
<el-dialog
title=
"提示"
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<span>
确定删除?
</span>
...
...
@@ -249,7 +249,8 @@ export default {
.
then
(
data
=>
{
if
(
data
.
success
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功'
})
this
.
$router
.
go
(
0
)
// 刷新列表,强刷新,返回第一页
this
.
$refs
.
tableList
&&
this
.
$refs
.
tableList
.
refersh
(
true
)
}
})
.
catch
(
e
=>
{
...
...
client/src/pages/learn/course.vue
浏览文件 @
689d30dc
...
...
@@ -107,13 +107,13 @@ export default {
clearInterval
(
this
.
timeInterval
)
this
.
timeInterval
=
null
}
//
this.timeInterval = setInterval(() => {
// cAction.chapterAction
.getNewLiveMsg().then(json => {
//
if (json.status === 200) {
//
this.newLiveMsg = json.data
//
}
//
}).catch(e => { this.$message.error(e.message) }).finally(() => { })
//
}, 3000)
this
.
timeInterval
=
setInterval
(()
=>
{
cAction
.
Player
.
getNewLiveMsg
().
then
(
json
=>
{
if
(
json
.
status
===
200
)
{
this
.
newLiveMsg
=
json
.
data
}
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
})
},
3000
)
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
cAction
.
Course
.
getLearnFind
().
then
(
data
=>
{
...
...
client/src/pages/learn/courseDetail.vue
浏览文件 @
689d30dc
...
...
@@ -401,10 +401,10 @@ export default {
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
);
loading
.
close
()
}).
finally
(()
=>
{
})
window
.
addEventListener
(
'resize'
,
this
.
resizeRoot
.
bind
(
this
),
false
)
/* 实时刷新数据 */
//
if (this.timeHeart) { clearInterval(this.timeHeart); this.timeHeart = null }
//
this.timeHeart = setInterval(() => {
//
this.updatePages()
//
}, 3000)
if
(
this
.
timeHeart
)
{
clearInterval
(
this
.
timeHeart
);
this
.
timeHeart
=
null
}
this
.
timeHeart
=
setInterval
(()
=>
{
this
.
updatePages
()
},
3000
)
this
.
arrFn
=
this
.
initBindKeyfn
()
},
destroyed
()
{
...
...
@@ -456,16 +456,14 @@ export default {
updatePages
()
{
cAction
.
Course
.
getCourseDetail
(
this
.
cid
,
this
.
sid
).
then
(
json
=>
{
/* 更新直播状态 */
const
course
=
json
.
tabs1ChapterList
.
course
for
(
let
i
=
0
;
i
<
course
.
length
;
i
++
)
{
const
chapters
=
course
[
i
].
chapters
for
(
let
j
=
0
;
j
<
chapters
.
length
;
j
++
)
{
if
(
chapters
[
j
].
type
===
5
)
{
this
.
tabs
[
1
].
chapterList
.
course
[
i
].
chapters
[
j
].
live
=
chapters
[
j
].
live
}
}
}
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
})
this
.
tabs
[
1
].
chapterList
.
course
=
json
.
tabs1ChapterList
.
course
.
map
(
item
=>
{
const
found
=
this
.
tabs
[
1
].
chapterList
.
course
.
find
(
rawItem
=>
rawItem
.
id
===
item
.
id
)
item
.
isUp
=
found
?
found
.
isUp
:
item
.
isUp
return
item
})
})
// 暂不处理,新增章节不能实时更新,需要手动刷新
// .catch(e => { this.$message.error(e.message) }).finally(() => { })
},
/**
* 课程内容 - 列表展开或者跳转
...
...
client/src/pages/mobileLive/list.vue
浏览文件 @
689d30dc
...
...
@@ -93,7 +93,14 @@ export default {
cAction
.
Player
.
getLiveList
()
.
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
this
.
dataList
=
response
.
data
this
.
dataList
=
response
.
data
.
map
(
data
=>
{
// 兼容老的数据结构
if
(
!
Array
.
isArray
(
data
.
live
))
{
data
.
live
.
live_type
=
'live'
data
.
live
=
[
data
.
live
]
}
return
data
}
)
}
}
)
// 取消报错提醒
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论