fix: rating

This commit is contained in:
zzc
2026-06-09 16:07:02 +08:00
parent acef084df7
commit 993b5f8eef
4 changed files with 89 additions and 28 deletions

View File

@@ -19,8 +19,8 @@
<template #default="{ row }">
<div v-if="row.topicItems && row.topicItems.length > 0" class="expand-content">
<h4>包含的评价项列表</h4>
<el-table border :data="row.topicItems" size="mini">
<el-table-column align="center" label="评价项" width="200">
<el-table border :data="row.topicItems" size="mini" style="width: 100%">
<el-table-column align="center" label="评价项" min-width="150">
<template #default="scope">
<div class="item-info">
<el-image v-if="scope.row.avatarUrl" class="item-avatar" :src="getThumbUrl(scope.row.avatarUrl)" />
@@ -28,13 +28,6 @@
</div>
</template>
</el-table-column>
<el-table-column align="center" label="分类" prop="category" width="100">
<template #default="{ row: item }">
<el-tag v-if="item.category" effect="plain" type="info">{{ item.category }}</el-tag>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column align="center" label="状态" width="100">
<template #default="scope">
<el-tag v-if="scope.row.status === 1" size="mini" type="warning">审核中</el-tag>
@@ -49,7 +42,7 @@
{{ formatTime(scope.row.createdAt) }}
</template>
</el-table-column>
<el-table-column align="center" label="操作" min-width="150">
<el-table-column align="center" label="操作" width="180">
<template #default="scope">
<el-button size="mini" type="success" @click="handleReview(scope.row, 2, 'topicItem')">通过</el-button>
<el-button size="mini" type="danger" @click="handleReview(scope.row, 3, 'topicItem')">拒绝</el-button>
@@ -61,12 +54,21 @@
</template>
</el-table-column>
<el-table-column align="left" label="评价主题" min-width="250" width="200">
<el-table-column align="left" label="评价主题" width="250">
<template #default="{ row }">
<div class="topic-info-cell">
<div class="topic-details">
<div class="topic-title">{{ row.title }}</div>
<div v-if="row.description" class="topic-desc" :title="row.description">{{ row.description }}</div>
</div>
</div>
</template>
</el-table-column>
<el-table-column align="left" label="类型" width="100">
<template #default="{ row }">
<div class="topic-info-cell">
<div class="topic-details">
<div class="topic-title">{{ row.category }}</div>
</div>
</div>
</template>
@@ -88,7 +90,7 @@
</template>
</el-table-column>
<el-table-column align="center" fixed="right" label="操作" width="180">
<el-table-column align="center" label="操作" width="180">
<template #default="{ row }">
<el-button size="mini" type="success" @click="handleReview(row, 2, 'topic')">通过</el-button>
<el-button size="mini" type="danger" @click="handleReview(row, 3, 'topic')">拒绝</el-button>
@@ -176,13 +178,16 @@
}
.expand-content {
padding: 10px 40px;
padding: 15px 40px;
background-color: #fafafa;
border-radius: 4px;
width: 100%;
box-sizing: border-box;
}
.expand-content h4 {
margin: 0 0 10px 0;
margin: 0 0 15px 0;
color: #606266;
font-size: 14px;
}
.expand-empty {
padding: 20px;