Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
8ff4d23c
提交
8ff4d23c
authored
11月 07, 2025
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
59e974a7
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
8 行删除
+35
-8
chapterWorkAnswerItem.vue
src/modules/viewer/components/work/chapterWorkAnswerItem.vue
+11
-1
chapterWorkCommentAndReply.vue
...les/viewer/components/work/chapterWorkCommentAndReply.vue
+16
-6
chapterWorkCommentToMe.vue
...modules/viewer/components/work/chapterWorkCommentToMe.vue
+8
-1
没有找到文件。
src/modules/viewer/components/work/chapterWorkAnswerItem.vue
浏览文件 @
8ff4d23c
<
template
>
<div
class=
"chatper-work-answer-item"
>
<div
class=
"chapter-work-answer-item-hd"
>
{{
nickname
}}
:
</div>
<div
class=
"chapter-work-answer-item-hd"
>
<p>
{{
nickname
}}
:
</p>
<p
class=
"time"
>
{{
data
.
created_time
}}
</p>
</div>
<div
class=
"chapter-work-answer-item-bd"
>
<div
class=
"item"
v-for=
"item in workList"
:key=
"item.question_id"
>
<show-more>
...
...
@@ -71,6 +74,13 @@ export default {
}
.chapter-work-answer-item-hd
{
margin-bottom
:
10px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.time
{
font-size
:
12px
;
color
:
#999
;
}
}
.chapter-work-answer-item-bd
{
font-size
:
12pt
;
...
...
src/modules/viewer/components/work/chapterWorkCommentAndReply.vue
浏览文件 @
8ff4d23c
...
...
@@ -11,20 +11,23 @@
:class=
"
{ 'is-mine': studentId === reply.student_id, 'is-other': studentId !== reply.student_id }"
v-for="reply in data.details"
>
<p
class=
"chapter-work-comment-and-reply-title"
v-if=
"studentId === reply.student_id"
>
我的回复:
</p>
<p
class=
"chapter-work-comment-and-reply-title"
v-else
>
{{
title
}}
的回复:
</p>
<div
class=
"chapter-work-comment-and-reply-title"
>
<p
v-if=
"studentId === reply.student_id"
>
我的回复:
</p>
<p
v-else
>
{{
title
}}
的回复:
</p>
<p
class=
"time"
>
{{
data
.
created_time
}}
</p>
</div>
<show-more
:key=
"reply.id"
>
<div
v-html=
"reply.comment"
></div>
</show-more>
</div>
</div>
<div
class=
"chapter-work-comment-and-reply-tools"
>
<el-button
size=
"small"
@
click=
"showComment = !showComment"
>
回复
</el-button>
<el-button
size=
"small"
@
click=
"showComment = !showComment"
>
回复
此评论
</el-button>
<template
v-if=
"showComment"
>
<div
style=
"flex:1;"
>
<div
style=
"flex:1;
width:100%;
"
>
<v-editor
v-model=
"comment"
></v-editor>
</div>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
提交
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSubmit"
>
提交回复
</el-button>
</
template
>
</div>
</div>
...
...
@@ -84,11 +87,18 @@ export default {
font-size
:
14px
;
margin-bottom
:
10px
;
color
:
#333
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.time
{
font-size
:
12px
;
color
:
#999
;
}
}
.chapter-work-comment-and-reply-tools
{
display
:
flex
;
flex-direction
:
column
;
//
align-items: flex-end;
align-items
:
flex-end
;
gap
:
10px
;
}
</
style
>
src/modules/viewer/components/work/chapterWorkCommentToMe.vue
浏览文件 @
8ff4d23c
...
...
@@ -2,7 +2,7 @@
<container
:title=
"$t('viewerWork.commentToMeTitle')"
>
<template
v-for=
"(item, index) in list"
>
<div
class=
"module-item"
:key=
"index"
>
<div
class=
"module-item-hd"
>
{{
$t
(
'viewerWork.comment'
)
}}{{
index
+
1
}}
:
</div>
<div
class=
"module-item-hd"
>
<div>
{{
$t
(
'viewerWork.comment'
)
}}{{
index
+
1
}}
:
</div><div
class=
"time"
>
{{
item
.
created_time
}}
</div>
</div>
<div
class=
"module-item-bd"
>
<chapter-work-comment-and-reply
:data=
"item"
...
...
@@ -54,5 +54,12 @@ export default {
}
.module-item-hd
{
margin-bottom
:
10px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.time
{
font-size
:
12px
;
color
:
#999
;
}
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论