Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
e668f6ac
提交
e668f6ac
authored
4月 24, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改课程讨论模块
上级
6f7d8beb
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
36 行增加
和
36 行删除
+36
-36
courseDetail.vue
client/src/pages/learn/courseDetail.vue
+36
-36
没有找到文件。
client/src/pages/learn/courseDetail.vue
浏览文件 @
e668f6ac
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<div
:class=
'["item-order", (sort[1].isShow ? "on" : "")]'
@
click=
'sortFn'
:data-index=
'1'
:data-str=
'sort[1].str'
>
按投票排序
</div>
<div
:class=
'["item-order", (sort[1].isShow ? "on" : "")]'
@
click=
'sortFn'
:data-index=
'1'
:data-str=
'sort[1].str'
>
按投票排序
</div>
</div>
</div>
<div
class=
'discuss-scroll'
bindscrolltolower=
'loadmore'
bindscrolltoupper=
'updatenew'
>
<div
class=
'discuss-scroll'
bindscrolltolower=
'loadmore'
bindscrolltoupper=
'updatenew'
>
<
!--
<
template
v-for=
'(item, index) in discussList'
>
<template
v-for=
'(item, index) in discussList'
>
<div
v-bind:key=
"index"
class=
'item-list'
@
click=
'goDiscussDetail'
:data-id=
'item.id'
:data-sid=
'item.sid'
:data-index=
'index'
>
<div
v-bind:key=
"index"
class=
'item-list'
@
click=
'goDiscussDetail'
:data-id=
'item.id'
:data-sid=
'item.sid'
:data-index=
'index'
>
<div
class=
'user'
>
<div
class=
'user'
>
<template
v-if=
"item.user.url"
>
<template
v-if=
"item.user.url"
>
...
@@ -95,8 +95,8 @@
...
@@ -95,8 +95,8 @@
</template>
</template>
<
template
v-if=
'!discussList.length'
>
<
template
v-if=
'!discussList.length'
>
<div
class=
'no-data'
>
暂无相关讨论
</div>
<div
class=
'no-data'
>
暂无相关讨论
</div>
</
template
>
-->
</
template
>
<
discuss
:params=
"params"
></discuss
>
<
!-- <discuss :params="params"></discuss> --
>
</div>
</div>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
...
@@ -232,13 +232,13 @@ export default {
...
@@ -232,13 +232,13 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
params
:
{
//
params: {
path
:
`/v2/qa/questions/course/
${
this
.
sid
}
/
${
this
.
cid
}
`
,
//
path: `/v2/qa/questions/course/${this.sid}/${this.cid}`,
page
:
{
//
page: {
limit
:
10
,
//
limit: 10,
offset
:
0
//
offset: 0
}
//
}
},
//
},
ckeditor
:
null
,
ckeditor
:
null
,
activeName
:
'1'
,
activeName
:
'1'
,
activeName1
:
'1'
,
activeName1
:
'1'
,
...
@@ -394,9 +394,9 @@ export default {
...
@@ -394,9 +394,9 @@ export default {
this
.
tabs
[
3
].
assess
=
json1
this
.
tabs
[
3
].
assess
=
json1
loading
.
close
()
loading
.
close
()
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
})
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
})
//
cAction.Discuss.getCourseDiscussList(this.cid, this.sid, this.param).then(json2 => {
cAction
.
Discuss
.
getCourseDiscussList
(
this
.
cid
,
this
.
sid
,
this
.
param
).
then
(
json2
=>
{
//
this.discussList = json2
this
.
discussList
=
json2
//
}).catch(e => { this.$message.error(e.message) }).finally(() => { })
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
})
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
);
loading
.
close
()
}).
finally
(()
=>
{
})
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
);
loading
.
close
()
}).
finally
(()
=>
{
})
window
.
addEventListener
(
'resize'
,
this
.
resizeRoot
.
bind
(
this
),
false
)
window
.
addEventListener
(
'resize'
,
this
.
resizeRoot
.
bind
(
this
),
false
)
/* 实时刷新数据 */
/* 实时刷新数据 */
...
@@ -737,17 +737,17 @@ export default {
...
@@ -737,17 +737,17 @@ export default {
message
:
'问题发布成功'
message
:
'问题发布成功'
})
})
this
.
isPublicShow
=
false
this
.
isPublicShow
=
false
this
.
params
=
{
//
this.params = {
path
:
`/v2/qa/questions/course/
${
this
.
sid
}
/
${
this
.
cid
}
`
,
//
path: `/v2/qa/questions/course/${this.sid}/${this.cid}`,
page
:
{
//
page: {
limit
:
10
,
//
limit: 10,
offset
:
0
//
offset: 0
},
//
},
v
:
(
new
Date
()).
valueOf
()
//
v: (new Date()).valueOf()
}
//
}
//
cAction.Discuss.getCourseDiscussList(this.cid, this.sid, this.param).then(json2 => {
cAction
.
Discuss
.
getCourseDiscussList
(
this
.
cid
,
this
.
sid
,
this
.
param
).
then
(
json2
=>
{
//
this.discussList = json2
this
.
discussList
=
json2
//
}).catch(e => { this.$message.error(e.message) }).finally(() => { })
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
})
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
}
}
}
else
{
}
else
{
...
@@ -774,18 +774,18 @@ export default {
...
@@ -774,18 +774,18 @@ export default {
this
.
param
.
sort
=
this
.
sort
[
index
].
isShow
?
str
:
''
this
.
param
.
sort
=
this
.
sort
[
index
].
isShow
?
str
:
''
this
.
param
.
offset
=
0
this
.
param
.
offset
=
0
//
const loading = this.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' })
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
this
.
params
=
{
//
this.params = {
path
:
`/v2/qa/questions/course/
${
this
.
sid
}
/
${
this
.
cid
}
`
,
//
path: `/v2/qa/questions/course/${this.sid}/${this.cid}`,
dataJson
:
{
//
dataJson: {
limit
:
10
,
//
limit: 10,
offset
:
0
,
//
offset: 0,
sort
:
this
.
sort
[
index
].
isShow
?
str
:
''
//
sort: this.sort[index].isShow ? str : ''
}
//
}
}
//
}
//
cAction.Discuss.getCourseDiscussList(this.cid, this.sid, this.param).then(json => {
cAction
.
Discuss
.
getCourseDiscussList
(
this
.
cid
,
this
.
sid
,
this
.
param
).
then
(
json
=>
{
//
this.discussList = json
this
.
discussList
=
json
//
}).catch(e => { this.$message.error(e.message) }).finally(() => { loading.close() })
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论