Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
16aa3abe
提交
16aa3abe
authored
5月 09, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
课程讨论组件修改
上级
523bbbb5
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
8 行增加
和
9 行删除
+8
-9
answerItem.vue
client/src/modules/discuss/components/answerItem.vue
+2
-2
replyDetailItem.vue
client/src/modules/discuss/components/replyDetailItem.vue
+1
-1
replyItem.vue
client/src/modules/discuss/components/replyItem.vue
+4
-5
discussDetail.vue
client/src/modules/discuss/src/discussDetail.vue
+1
-1
没有找到文件。
client/src/modules/discuss/components/answerItem.vue
浏览文件 @
16aa3abe
...
...
@@ -26,7 +26,7 @@
<
template
v-if=
"commentVisible"
>
<!-- 评论列表 -->
<template
v-for=
"item in data.comments"
>
<reply-item
:data=
"item"
:dataId=
"data.id"
:key=
"item.id"
></reply-item>
<reply-item
v-on=
"$listeners"
:data=
"item"
:dataId=
"data.id"
:key=
"item.id"
></reply-item>
</
template
>
</template>
</div>
...
...
@@ -56,7 +56,7 @@ export default {
deleteAnswer
(
id
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
api
.
deleteAnswer
(
id
).
then
(
json
=>
{
this
.
$
parent
.
updateList
(
)
this
.
$
emit
(
'updateList'
)
this
.
$message
({
type
:
'success'
,
message
:
this
.
$t
(
'pages.learn.discussDetail.deleteSuccess'
)
})
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
}
...
...
client/src/modules/discuss/components/replyDetailItem.vue
浏览文件 @
16aa3abe
...
...
@@ -28,7 +28,7 @@ export default {
deleteComment
(
id
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
api
.
deleteComment
(
id
).
then
(
json
=>
{
this
.
$
parent
.
updateList
(
)
this
.
$
emit
(
'updateList'
)
this
.
$message
({
type
:
'success'
,
message
:
this
.
$t
(
'pages.learn.discussDetail.deleteSuccess'
)
})
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
}
...
...
client/src/modules/discuss/components/replyItem.vue
浏览文件 @
16aa3abe
...
...
@@ -9,7 +9,7 @@
@
click=
"deleteComment(data.id)"
>
{{
$t
(
'pages.learn.discussDetail.delete'
)
}}
</div>
</
template
>
<div
class=
"right-txt"
@
click=
"
reply(
{answer_id: dataId, to: data.observer.nickname})"
>
{{ $t('pages.learn.discussDetail.reply') }}
</div>
<div
class=
"right-txt"
@
click=
"
$emit('reply',
{answer_id: dataId, to: data.observer.nickname})"
>
{{ $t('pages.learn.discussDetail.reply') }}
</div>
</div>
<div
class=
"text"
v-html=
"data.comments"
></div>
</div>
...
...
@@ -24,14 +24,13 @@ export default {
data
()
{
return
{}
},
mounted
()
{
},
methods
:
{
reply
(
param
)
{
this
.
$parent
.
$parent
.
replyComposeParam
(
param
)
},
deleteComment
(
id
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
api
.
deleteComment
(
id
).
then
(
json
=>
{
this
.
$
parent
.
$parent
.
updateList
(
)
this
.
$
emit
(
'updateList'
)
this
.
$message
({
type
:
'success'
,
message
:
this
.
$t
(
'pages.learn.discussDetail.deleteSuccess'
)
})
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
}
...
...
client/src/modules/discuss/src/discussDetail.vue
浏览文件 @
16aa3abe
...
...
@@ -15,7 +15,7 @@
</div>
<div
v-show=
'commentVisible'
>
<
template
v-for=
"item in detail.comments"
>
<reply-item
:data=
"item"
:key=
"item.id"
:dataId=
"detail.id"
@
reply=
"replyComposeParam"
></reply-item>
<reply-item
:data=
"item"
:key=
"item.id"
:dataId=
"detail.id"
@
reply=
"replyComposeParam"
@
updateList=
"updateList"
></reply-item>
</
template
>
</div>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论