style: 教师端新增批阅作业页面;新增查看作业页面,回复评论
BIN
public/images/teacher/homework.png
Normal file
After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
Before Width: | Height: | Size: 855 B After Width: | Height: | Size: 855 B |
Before Width: | Height: | Size: 552 B After Width: | Height: | Size: 552 B |
@ -78,16 +78,21 @@
|
|||||||
<div class="breadcrumb">
|
<div class="breadcrumb">
|
||||||
<span class="breadcrumb-side"></span>
|
<span class="breadcrumb-side"></span>
|
||||||
<div class="custom-breadcrumb">
|
<div class="custom-breadcrumb">
|
||||||
<span v-for="(item, index) in breadcrumbItems" :key="index" class="breadcrumb-item" :class="{
|
<!-- 左侧课程管理 -->
|
||||||
'clickable': index < breadcrumbItems.length - 1,
|
<span class="breadcrumb-item clickable first-item"
|
||||||
'last-item': index === breadcrumbItems.length - 1,
|
@click="handleBreadcrumbClick('/teacher/course-management')">课程管理</span>
|
||||||
'first-item': index === 0
|
<!-- 右侧路径 -->
|
||||||
}" @click="index < breadcrumbItems.length - 1 ? handleBreadcrumbClick(item.path) : null">
|
<div class="breadcrumb-path">
|
||||||
|
<span v-for="(item, index) in breadcrumbPathItems" :key="index" class="breadcrumb-item" :class="{
|
||||||
|
'clickable': index < breadcrumbPathItems.length - 1,
|
||||||
|
'last-item': index === breadcrumbPathItems.length - 1
|
||||||
|
}" @click="index < breadcrumbPathItems.length - 1 ? handleBreadcrumbClick(item.path) : null">
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
<span v-if="index < breadcrumbItems.length - 1 && index > 0" class="breadcrumb-separator"> > </span>
|
<span v-if="index < breadcrumbPathItems.length - 1" class="breadcrumb-separator"> > </span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -159,22 +164,17 @@ const hideSidebar = computed(() => {
|
|||||||
return currentPath.includes('course-editor') || currentPath.includes('chapter-editor-teacher')
|
return currentPath.includes('course-editor') || currentPath.includes('chapter-editor-teacher')
|
||||||
})
|
})
|
||||||
|
|
||||||
// 动态生成面包屑
|
// 动态生成面包屑路径项(右侧部分)
|
||||||
const breadcrumbItems = computed(() => {
|
const breadcrumbPathItems = computed(() => {
|
||||||
const currentPath = route.path;
|
const currentPath = route.path;
|
||||||
|
|
||||||
// 如果在课程编辑器相关页面,强制添加课程管理面包屑
|
// 如果在课程编辑器相关页面
|
||||||
if (currentPath.includes('course-editor')) {
|
if (currentPath.includes('course-editor')) {
|
||||||
// 从路径中提取课程ID
|
// 从路径中提取课程ID
|
||||||
const courseIdMatch = currentPath.match(/\/course-editor\/(\d+)/);
|
const courseIdMatch = currentPath.match(/\/course-editor\/(\d+)/);
|
||||||
const courseId = courseIdMatch ? courseIdMatch[1] : '未知';
|
const courseId = courseIdMatch ? courseIdMatch[1] : '未知';
|
||||||
|
|
||||||
let breadcrumbs = [
|
let breadcrumbs = [];
|
||||||
{
|
|
||||||
title: '课程管理',
|
|
||||||
path: '/teacher/course-management'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
// 根据当前路径添加子页面标题
|
// 根据当前路径添加子页面标题
|
||||||
if (currentPath.includes('courseware')) {
|
if (currentPath.includes('courseware')) {
|
||||||
@ -245,6 +245,29 @@ const breadcrumbItems = computed(() => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else if (currentPath.includes('homework')) {
|
} else if (currentPath.includes('homework')) {
|
||||||
|
// 检查是否是批阅作业详情页面
|
||||||
|
if (currentPath.includes('review/') && currentPath.split('/').length > 6) {
|
||||||
|
// 批阅作业详情页面:课程管理 > 课程名称 > 批阅作业 > 批阅
|
||||||
|
breadcrumbs.push(
|
||||||
|
{
|
||||||
|
title: '课程管理',
|
||||||
|
path: '/teacher/course-management'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: `课程${courseId}`,
|
||||||
|
path: `/teacher/course-editor/${courseId}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '批阅作业',
|
||||||
|
path: `/teacher/course-editor/${courseId}/homework/review`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '批阅',
|
||||||
|
path: currentPath
|
||||||
|
}
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
// 普通作业页面:作业管理
|
||||||
breadcrumbs.push(
|
breadcrumbs.push(
|
||||||
{
|
{
|
||||||
title: '作业管理',
|
title: '作业管理',
|
||||||
@ -255,6 +278,7 @@ const breadcrumbItems = computed(() => {
|
|||||||
path: `/teacher/course-editor/${courseId}`
|
path: `/teacher/course-editor/${courseId}`
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
} else if (currentPath.includes('practice')) {
|
} else if (currentPath.includes('practice')) {
|
||||||
breadcrumbs.push(
|
breadcrumbs.push(
|
||||||
{
|
{
|
||||||
@ -786,11 +810,16 @@ const updateActiveNavItem = () => {
|
|||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.breadcrumb-path {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
.breadcrumb-item {
|
.breadcrumb-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #666;
|
color: #000;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: color 0.3s ease;
|
transition: color 0.3s ease;
|
||||||
}
|
}
|
||||||
@ -814,6 +843,7 @@ const updateActiveNavItem = () => {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb-separator {
|
.breadcrumb-separator {
|
||||||
|
@ -145,7 +145,8 @@ const hideSidebar = computed(() => {
|
|||||||
const hideSidebarPaths = [
|
const hideSidebarPaths = [
|
||||||
'add-question', // 新增试题页面
|
'add-question', // 新增试题页面
|
||||||
'add-homework', // 添加作业页面
|
'add-homework', // 添加作业页面
|
||||||
'template-import'
|
'template-import',
|
||||||
|
'review/'
|
||||||
]
|
]
|
||||||
|
|
||||||
// 检查当前路径是否包含需要隐藏侧边栏的路径
|
// 检查当前路径是否包含需要隐藏侧边栏的路径
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<template>
|
<<template>
|
||||||
<div class="homework-review">
|
<div class="homework-review">
|
||||||
<!-- 顶部筛选区域 -->
|
<!-- 顶部筛选区域 -->
|
||||||
<div class="top-section">
|
<div class="top-section">
|
||||||
@ -97,6 +97,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
interface HomeworkItem {
|
interface HomeworkItem {
|
||||||
id: number
|
id: number
|
||||||
@ -110,6 +111,7 @@ interface HomeworkItem {
|
|||||||
unsubmittedCount: number
|
unsubmittedCount: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const router = useRouter()
|
||||||
const activeTab = ref<'all' | 'publishing' | 'ended'>('all')
|
const activeTab = ref<'all' | 'publishing' | 'ended'>('all')
|
||||||
|
|
||||||
// 屏幕宽度响应式数据
|
// 屏幕宽度响应式数据
|
||||||
@ -168,6 +170,8 @@ const filteredHomeworks = computed(() => {
|
|||||||
|
|
||||||
const reviewHomework = (id: number) => {
|
const reviewHomework = (id: number) => {
|
||||||
console.log('批阅作业:', id)
|
console.log('批阅作业:', id)
|
||||||
|
// 跳转到批阅详情页面
|
||||||
|
router.push(`/teacher/course-editor/1/homework/review/${id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const viewHomework = (id: number) => {
|
const viewHomework = (id: number) => {
|
||||||
@ -588,4 +592,4 @@ const deleteHomework = (id: number) => {
|
|||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
</style>
|
</style>>
|
567
src/views/teacher/course/HomeworkReviewDetail.vue
Normal file
@ -0,0 +1,567 @@
|
|||||||
|
<template>
|
||||||
|
<div class="homework-review-detail">
|
||||||
|
<!-- 顶部区域 -->
|
||||||
|
<div class="top-section">
|
||||||
|
<!-- 左侧标签页 - 使用 Naive UI Tabs -->
|
||||||
|
<div class="tabs-container">
|
||||||
|
<n-tabs v-model:value="activeTab" type="line" animated>
|
||||||
|
<n-tab-pane name="all" tab="全部" />
|
||||||
|
<n-tab-pane name="submitted" tab="已提交" />
|
||||||
|
<n-tab-pane name="unsubmitted" tab="未提交" />
|
||||||
|
</n-tabs>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 右侧按钮和搜索 -->
|
||||||
|
<div class="actions-container">
|
||||||
|
<n-button class="action-btn export-btn" ghost type="primary" size="small">导出</n-button>
|
||||||
|
<n-button class="action-btn remove-btn" ghost type="error" size="small">移除</n-button>
|
||||||
|
<div class="search-container">
|
||||||
|
<n-input-group>
|
||||||
|
<n-input
|
||||||
|
v-model:value="searchText"
|
||||||
|
placeholder="请输入学生姓名"
|
||||||
|
:style="{ width: '200px' }"
|
||||||
|
size="medium"
|
||||||
|
/>
|
||||||
|
<n-button type="primary" size="medium">
|
||||||
|
搜索
|
||||||
|
</n-button>
|
||||||
|
</n-input-group>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 数据表格 - 使用 Naive UI Table -->
|
||||||
|
<div class="table-container">
|
||||||
|
<n-data-table
|
||||||
|
:columns="activeTab === 'unsubmitted' ? unsubmittedColumns : columns"
|
||||||
|
:data="filteredData"
|
||||||
|
:pagination="false"
|
||||||
|
:bordered="false"
|
||||||
|
:single-line="false"
|
||||||
|
size="medium"
|
||||||
|
:row-key="(row) => row.id"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, computed, h } from 'vue'
|
||||||
|
import { useRouter, useRoute } from 'vue-router'
|
||||||
|
import {
|
||||||
|
NTabs,
|
||||||
|
NTabPane,
|
||||||
|
NDataTable,
|
||||||
|
NButton,
|
||||||
|
NInput,
|
||||||
|
NInputGroup,
|
||||||
|
type DataTableColumns
|
||||||
|
} from 'naive-ui'
|
||||||
|
|
||||||
|
interface HomeworkSubmission {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
studentId: string
|
||||||
|
submitTime: string
|
||||||
|
status: '已批阅' | '待批阅'
|
||||||
|
reviewer: string
|
||||||
|
reviewTime: string
|
||||||
|
selected: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
const router = useRouter()
|
||||||
|
const route = useRoute()
|
||||||
|
const activeTab = ref<'all' | 'submitted' | 'unsubmitted'>('all')
|
||||||
|
const searchText = ref('')
|
||||||
|
// const selectAll = ref(false)
|
||||||
|
|
||||||
|
// 查看作业详情
|
||||||
|
const viewHomework = (row: HomeworkSubmission) => {
|
||||||
|
router.push(`/teacher/course-editor/${route.params.id}/homework/review/${route.params.homeworkId}/view/${row.studentId}`)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 模拟数据 - 包含已批阅和待批阅的数据
|
||||||
|
const homeworkData = ref<HomeworkSubmission[]>([
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: '陈成',
|
||||||
|
studentId: '1826685554',
|
||||||
|
submitTime: '2025.07.25 09:20',
|
||||||
|
status: '已批阅',
|
||||||
|
reviewer: '王建国',
|
||||||
|
reviewTime: '2025.07.25 09:20',
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: '李华',
|
||||||
|
studentId: '1826685555',
|
||||||
|
submitTime: '2025.07.25 10:15',
|
||||||
|
status: '待批阅',
|
||||||
|
reviewer: '王建国',
|
||||||
|
reviewTime: '2025.07.25 10:15',
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
name: '张伟',
|
||||||
|
studentId: '1826685556',
|
||||||
|
submitTime: '2025.07.25 11:30',
|
||||||
|
status: '已批阅',
|
||||||
|
reviewer: '王建国',
|
||||||
|
reviewTime: '2025.07.25 11:30',
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
name: '王芳',
|
||||||
|
studentId: '1826685557',
|
||||||
|
submitTime: '2025.07.25 14:20',
|
||||||
|
status: '待批阅',
|
||||||
|
reviewer: '王建国',
|
||||||
|
reviewTime: '2025.07.25 14:20',
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
name: '刘强',
|
||||||
|
studentId: '1826685558',
|
||||||
|
submitTime: '2025.07.25 16:45',
|
||||||
|
status: '已批阅',
|
||||||
|
reviewer: '王建国',
|
||||||
|
reviewTime: '2025.07.25 16:45',
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
name: '赵敏',
|
||||||
|
studentId: '1826685559',
|
||||||
|
submitTime: '2025.07.26 08:30',
|
||||||
|
status: '待批阅',
|
||||||
|
reviewer: '王建国',
|
||||||
|
reviewTime: '2025.07.26 08:30',
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 7,
|
||||||
|
name: '孙丽',
|
||||||
|
studentId: '1826685560',
|
||||||
|
submitTime: '2025.07.26 09:15',
|
||||||
|
status: '已批阅',
|
||||||
|
reviewer: '王建国',
|
||||||
|
reviewTime: '2025.07.26 09:15',
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 8,
|
||||||
|
name: '周杰',
|
||||||
|
studentId: '1826685561',
|
||||||
|
submitTime: '2025.07.26 10:45',
|
||||||
|
status: '待批阅',
|
||||||
|
reviewer: '王建国',
|
||||||
|
reviewTime: '2025.07.26 10:45',
|
||||||
|
selected: false
|
||||||
|
}
|
||||||
|
])
|
||||||
|
|
||||||
|
// 根据标签页和搜索过滤数据
|
||||||
|
const filteredData = computed(() => {
|
||||||
|
let filtered = homeworkData.value
|
||||||
|
|
||||||
|
// 根据标签页过滤
|
||||||
|
if (activeTab.value === 'submitted') {
|
||||||
|
filtered = filtered.filter((item: HomeworkSubmission) => item.status === '已批阅')
|
||||||
|
} else if (activeTab.value === 'unsubmitted') {
|
||||||
|
filtered = filtered.filter((item: HomeworkSubmission) => item.status === '待批阅')
|
||||||
|
}
|
||||||
|
|
||||||
|
// 根据搜索文本过滤
|
||||||
|
if (searchText.value.trim()) {
|
||||||
|
filtered = filtered.filter((item: HomeworkSubmission) =>
|
||||||
|
item.name.includes(searchText.value.trim())
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
return filtered
|
||||||
|
})
|
||||||
|
|
||||||
|
// 定义表格列
|
||||||
|
const columns: DataTableColumns<HomeworkSubmission> = [
|
||||||
|
{
|
||||||
|
type: 'selection',
|
||||||
|
width: 50,
|
||||||
|
fixed: 'left'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '序号',
|
||||||
|
key: 'serial',
|
||||||
|
width: 60,
|
||||||
|
render: (_row: HomeworkSubmission, index: number) => index + 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '姓名',
|
||||||
|
key: 'name',
|
||||||
|
width: 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '学号',
|
||||||
|
key: 'studentId',
|
||||||
|
width: 120
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '提交时间',
|
||||||
|
key: 'submitTime',
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: () => h('div', {
|
||||||
|
style: {
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
gap: '4px'
|
||||||
|
}
|
||||||
|
}, [
|
||||||
|
h('span', '状态'),
|
||||||
|
h('img', {
|
||||||
|
src: '/images/teacher/箭头-黑.png',
|
||||||
|
style: {
|
||||||
|
width: '10px',
|
||||||
|
height: '6px'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
]),
|
||||||
|
key: 'status',
|
||||||
|
width: 100,
|
||||||
|
render: (_row: HomeworkSubmission) => {
|
||||||
|
return h('span', {
|
||||||
|
style: {
|
||||||
|
color: '#062333',
|
||||||
|
fontSize: '14px'
|
||||||
|
}
|
||||||
|
}, _row.status)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '批阅人',
|
||||||
|
key: 'reviewer',
|
||||||
|
width: 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '批阅时间',
|
||||||
|
key: 'reviewTime',
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
key: 'operations',
|
||||||
|
width: 200,
|
||||||
|
render: (row: HomeworkSubmission) => {
|
||||||
|
return h('div', { class: 'operations-container' }, [
|
||||||
|
h(NButton, {
|
||||||
|
type: 'primary',
|
||||||
|
size: 'small',
|
||||||
|
ghost: true,
|
||||||
|
class: 'operation-btn',
|
||||||
|
onClick: () => viewHomework(row)
|
||||||
|
}, { default: () => '查看' }),
|
||||||
|
row.status === '待批阅' ? h(NButton, {
|
||||||
|
type: 'primary',
|
||||||
|
size: 'small',
|
||||||
|
ghost: true,
|
||||||
|
class: 'operation-btn'
|
||||||
|
}, { default: () => '批阅' }) : null,
|
||||||
|
h(NButton, {
|
||||||
|
type: 'error',
|
||||||
|
size: 'small',
|
||||||
|
ghost: true,
|
||||||
|
class: 'operation-btn'
|
||||||
|
}, { default: () => '移除' })
|
||||||
|
].filter(Boolean))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
// 定义未提交标签页的列
|
||||||
|
const unsubmittedColumns: DataTableColumns<HomeworkSubmission> = [
|
||||||
|
{
|
||||||
|
type: 'selection',
|
||||||
|
width: 50,
|
||||||
|
fixed: 'left'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '序号',
|
||||||
|
key: 'serial',
|
||||||
|
width: 80,
|
||||||
|
render: (_row: HomeworkSubmission, index: number) => index + 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '姓名',
|
||||||
|
key: 'name',
|
||||||
|
width: 120
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '学号',
|
||||||
|
key: 'studentId',
|
||||||
|
width: 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '领取时间',
|
||||||
|
key: 'reviewTime',
|
||||||
|
width: 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: () => h('div', {
|
||||||
|
style: {
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
gap: '4px'
|
||||||
|
}
|
||||||
|
}, [
|
||||||
|
h('span', '状态'),
|
||||||
|
h('img', {
|
||||||
|
src: '/images/teacher/箭头-黑.png',
|
||||||
|
style: {
|
||||||
|
width: '10px',
|
||||||
|
height: '6px'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
]),
|
||||||
|
key: 'status',
|
||||||
|
width: 120,
|
||||||
|
render: (row: HomeworkSubmission) => {
|
||||||
|
return h('span', {
|
||||||
|
style: {
|
||||||
|
color: '#062333',
|
||||||
|
fontSize: '14px'
|
||||||
|
}
|
||||||
|
}, row.status)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
key: 'operations',
|
||||||
|
width: 140,
|
||||||
|
render: (_row: HomeworkSubmission) => {
|
||||||
|
return h('div', { class: 'operations-container' }, [
|
||||||
|
h(NButton, {
|
||||||
|
type: 'primary',
|
||||||
|
size: 'small',
|
||||||
|
ghost: true,
|
||||||
|
class: 'operation-btn'
|
||||||
|
}, { default: () => '提醒' }),
|
||||||
|
h(NButton, {
|
||||||
|
type: 'error',
|
||||||
|
size: 'small',
|
||||||
|
ghost: true,
|
||||||
|
class: 'operation-btn'
|
||||||
|
}, { default: () => '移除' })
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.homework-review-detail {
|
||||||
|
width: 100%;
|
||||||
|
background: #fff;
|
||||||
|
min-height: 100vh;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 顶部区域 */
|
||||||
|
.top-section {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 左侧标签页 */
|
||||||
|
.tabs-container {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 右侧按钮和搜索 */
|
||||||
|
.actions-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 15px;
|
||||||
|
padding: 20px 20px 0 0;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding-bottom: 18px;
|
||||||
|
border-bottom: 1.5px solid #E6E6E6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 表格容器 */
|
||||||
|
.table-container {
|
||||||
|
padding: 20px 30px 30px 10px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
:deep(.operations-container) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operation-btn {
|
||||||
|
min-width: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 自定义 Naive UI 组件样式 */
|
||||||
|
:deep(.n-tabs-tab) {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333;
|
||||||
|
padding: 10px 0 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 搜索按钮样式 */
|
||||||
|
:deep(.search-container .n-button--primary-type) {
|
||||||
|
background: #0288D1 !important;
|
||||||
|
border-color: #0288D1 !important;
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.search-container .n-button--primary-type:hover) {
|
||||||
|
background: #0277bd !important;
|
||||||
|
border-color: #0277bd !important;
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 操作按钮样式 */
|
||||||
|
:deep(.action-btn) {
|
||||||
|
height: 32px !important;
|
||||||
|
border-radius: 2px !important;
|
||||||
|
padding: 0 14px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-tabs-tab--active) {
|
||||||
|
color: #5BADD9;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-tabs-nav-scroll-content) {
|
||||||
|
padding: 20px 0 0 0;
|
||||||
|
border-bottom: 1.5px solid #E6E6E6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-tabs-tab--active .n-tabs-tab-pad) {
|
||||||
|
border-bottom: 4px solid #0288D1;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-data-table) {
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
border-radius: 2px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-data-table .n-data-table-thead th) {
|
||||||
|
background: #f8f9fa;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #062333;
|
||||||
|
font-size: 14px;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
text-align: center;
|
||||||
|
padding: 8px 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-data-table .n-data-table-tbody td) {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #062333;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
text-align: center;
|
||||||
|
padding: 8px 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-data-table .n-data-table-tbody tr:hover) {
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-tag) {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-tag--success) {
|
||||||
|
background: #5BADD9;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-tag--warning) {
|
||||||
|
background: #FF9800;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-button--primary-type) {
|
||||||
|
border-color: #0288D1;
|
||||||
|
color: #0288D1;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-button--primary-type:hover) {
|
||||||
|
background: #0288D1;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-button--error-type) {
|
||||||
|
border-color: #f44336;
|
||||||
|
color: #f44336;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.n-button--error-type:hover) {
|
||||||
|
background: #f44336;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 响应式设计 */
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.top-section {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 20px;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actions-container {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
|
||||||
|
.actions-container {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-container {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operations-container {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operation-btn {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
463
src/views/teacher/course/HomeworkReviewView.vue
Normal file
@ -0,0 +1,463 @@
|
|||||||
|
<template>
|
||||||
|
<div class="homework-review-view">
|
||||||
|
<!-- 头部信息区域 -->
|
||||||
|
<div class="header-section">
|
||||||
|
<!-- 左侧:头像、名称、时间 -->
|
||||||
|
<div class="user-info">
|
||||||
|
<div class="avatar">
|
||||||
|
<img src="/images/activity/1.png" alt="头像" />
|
||||||
|
</div>
|
||||||
|
<div class="user-details">
|
||||||
|
<div class="user-name">王伦国</div>
|
||||||
|
<div class="submit-time">2025-07-21</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 右侧:作业状态 -->
|
||||||
|
<div class="homework-status">
|
||||||
|
<span class="status-text" :class="homeworkInfo.status === '已批阅' ? 'reviewed' : 'unreviewed'">
|
||||||
|
{{ homeworkInfo.status }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 作业内容区域 -->
|
||||||
|
<div class="content-section">
|
||||||
|
<!-- 作业标题 -->
|
||||||
|
<h1 class="homework-title">{{ homeworkInfo.title }}</h1>
|
||||||
|
|
||||||
|
<!-- 作业内容 -->
|
||||||
|
<div class="homework-content">
|
||||||
|
<p>{{ homeworkInfo.content }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 作业图片 -->
|
||||||
|
<div class="homework-images" v-if="homeworkInfo.images && homeworkInfo.images.length > 0">
|
||||||
|
<div class="image-grid">
|
||||||
|
<div v-for="(image, index) in homeworkInfo.images" :key="index" class="image-item">
|
||||||
|
<img :src="image.url" :alt="`作业图片${index + 1}`" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 附件列表 -->
|
||||||
|
<div class="attachments" v-if="homeworkInfo.attachments && homeworkInfo.attachments.length > 0">
|
||||||
|
<div class="attachment-list">
|
||||||
|
<template v-for="(attachment, index) in homeworkInfo.attachments" :key="attachment.id">
|
||||||
|
<div class="attachment-item" @click="downloadAttachment(attachment)">
|
||||||
|
<div class="attachment-icon">
|
||||||
|
<img src="/images/teacher/文件格式.png" alt="文件图标" />
|
||||||
|
</div>
|
||||||
|
<span class="attachment-name">{{ attachment.name }}</span>
|
||||||
|
<div class="download-icon">
|
||||||
|
<img src="/images/teacher/下载-蓝.png" alt="下载图标" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<n-divider v-if="index < homeworkInfo.attachments.length - 1" vertical class="attachment-divider" />
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 底部操作区域 -->
|
||||||
|
<div class="actions-section">
|
||||||
|
<n-button type="primary" class="reply-btn" @click="handleReply">
|
||||||
|
回复
|
||||||
|
</n-button>
|
||||||
|
|
||||||
|
<!-- 回复输入区域 -->
|
||||||
|
<div class="reply-input-section" v-if="showReplyInput">
|
||||||
|
<div class="reply-input-container">
|
||||||
|
<textarea v-model="replyContent" placeholder="请输入回复内容" class="reply-input"></textarea>
|
||||||
|
<div class="reply-actions">
|
||||||
|
<n-button type="primary" class="send-btn" @click="sendReply">
|
||||||
|
发送
|
||||||
|
</n-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 我的回复区域 -->
|
||||||
|
<div class="my-reply-section" v-if="myReply">
|
||||||
|
<h3 class="reply-title">我的回复</h3>
|
||||||
|
<div class="reply-item">
|
||||||
|
<div class="reply-content">
|
||||||
|
<span class="user-tag">本人</span>
|
||||||
|
<span class="user-name">{{ myReply.userName }}:</span>
|
||||||
|
<span class="reply-text">{{ myReply.content }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref } from 'vue'
|
||||||
|
import { NButton, NDivider } from 'naive-ui'
|
||||||
|
|
||||||
|
// 作业信息
|
||||||
|
const homeworkInfo = ref({
|
||||||
|
title: '作业标题作业标题作业标题作业标',
|
||||||
|
content: '作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容内作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作 业内容作业内容',
|
||||||
|
status: '已批阅', // '已批阅' 或 '未批阅'
|
||||||
|
images: [
|
||||||
|
{ url: '/images/teacher/homework.png' },
|
||||||
|
{ url: '/images/teacher/homework.png' },
|
||||||
|
{ url: '/images/teacher/homework.png' },
|
||||||
|
{ url: '/images/teacher/homework.png' },
|
||||||
|
{ url: '/images/teacher/homework.png' }
|
||||||
|
],
|
||||||
|
attachments: [
|
||||||
|
{ id: 1, name: '文件名称.PDF' },
|
||||||
|
{ id: 2, name: '文件名称.PDF' }
|
||||||
|
]
|
||||||
|
})
|
||||||
|
|
||||||
|
// 下载附件
|
||||||
|
const downloadAttachment = (attachment: any) => {
|
||||||
|
console.log('下载附件:', attachment.name)
|
||||||
|
// 这里实现下载逻辑
|
||||||
|
}
|
||||||
|
|
||||||
|
// 回复功能相关数据
|
||||||
|
const showReplyInput = ref(false)
|
||||||
|
const replyContent = ref('')
|
||||||
|
|
||||||
|
// 我的回复数据
|
||||||
|
const myReply = ref({
|
||||||
|
userName: '王伦过',
|
||||||
|
content: '没事多看看课程你就懂了'
|
||||||
|
})
|
||||||
|
|
||||||
|
// 显示回复输入框
|
||||||
|
const handleReply = () => {
|
||||||
|
showReplyInput.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
// 发送回复
|
||||||
|
const sendReply = () => {
|
||||||
|
if (replyContent.value.trim()) {
|
||||||
|
console.log('发送回复:', replyContent.value)
|
||||||
|
// 这里实现发送回复的逻辑
|
||||||
|
// 发送成功后可以隐藏输入框
|
||||||
|
showReplyInput.value = false
|
||||||
|
replyContent.value = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.homework-review-view {
|
||||||
|
padding: 30px;
|
||||||
|
background: #fff;
|
||||||
|
min-height: 100vh;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 头部信息区域 */
|
||||||
|
.header-section {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
border-bottom: 1.5px solid #E6E6E6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 左侧用户信息 */
|
||||||
|
.user-info {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatar {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
border-radius: 50%;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 2px solid #198FD4;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatar img {
|
||||||
|
width: 95%;
|
||||||
|
height: 95%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-details {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-name {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-time {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 右侧作业状态 */
|
||||||
|
.homework-status {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-text {
|
||||||
|
padding-top: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #0288D1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 作业内容区域 */
|
||||||
|
.content-section {}
|
||||||
|
|
||||||
|
.homework-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #000;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.homework-content {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.homework-content p {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.8;
|
||||||
|
color: #666;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 作业图片 */
|
||||||
|
.homework-images {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-grid {
|
||||||
|
display: flex;
|
||||||
|
gap: 15px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-item {
|
||||||
|
width: 120px;
|
||||||
|
height: 120px;
|
||||||
|
border-radius: 2px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-item img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 附件列表 */
|
||||||
|
.attachments {}
|
||||||
|
|
||||||
|
.attachment-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #F5F8FB;
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachment-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: left;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 12px 10px;
|
||||||
|
border-radius: 2px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
min-width: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachment-item:hover {
|
||||||
|
background: #e9ecef;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachment-icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachment-icon img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachment-name {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-icon img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 附件分割线 */
|
||||||
|
.attachment-divider {
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 底部操作区域 */
|
||||||
|
.actions-section {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
padding-top: 20px;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-btn {
|
||||||
|
padding: 0 40px;
|
||||||
|
font-size: 14px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: #0288D1;
|
||||||
|
border-color: #0288D1;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-btn:hover {
|
||||||
|
background: #0277bd;
|
||||||
|
border-color: #0277bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 回复输入区域 */
|
||||||
|
.reply-input-section {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-input-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-input {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 自定义输入框样式 */
|
||||||
|
.reply-input {
|
||||||
|
border: 1.5px solid #D8D8D8;
|
||||||
|
background-color: #F5F8FB;
|
||||||
|
min-height: 86px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 14px;
|
||||||
|
border-radius: 4px;
|
||||||
|
outline: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
resize: none;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-input::placeholder {
|
||||||
|
color: #999999;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-input:focus {
|
||||||
|
border-color: #0288D1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.send-btn {
|
||||||
|
padding: 0 30px;
|
||||||
|
font-size: 14px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: #0288D1;
|
||||||
|
border-color: #0288D1;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.send-btn:hover {
|
||||||
|
background: #0277bd;
|
||||||
|
border-color: #0277bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 我的回复区域 */
|
||||||
|
.my-reply-section {
|
||||||
|
margin-top: 30px;
|
||||||
|
padding-top: 20px;
|
||||||
|
border-top: 1.5px solid #E6E6E6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #000;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding-bottom: 30px;
|
||||||
|
border-bottom: 1.5px solid #E6E6E6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-item {
|
||||||
|
background-color: #F5F8FB;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 16px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-content {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-tag {
|
||||||
|
background-color: #E5F3FA;
|
||||||
|
color: #0388D1;
|
||||||
|
font-size: 8px;
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 2px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-name {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #464646;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reply-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #464646;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
</style>
|