社团管理1.0
This commit is contained in:
1 parent
4d8267e561
commit
d256028f8a
83 files changed
+2040
-1096
No files matched your search
@@ -3,7 +3,7 @@
|
||||
<div v-if="ratings.length === 0" class="empty-state">
|
||||
<el-empty description="暂无评分信息" :image-size="80" />
|
||||
</div>
|
||||
|
||||
|
||||
<div v-else>
|
||||
<div class="rating-summary">
|
||||
<el-row :gutter="20">
|
||||
@@ -18,9 +18,9 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
|
||||
<el-divider />
|
||||
|
||||
|
||||
<el-table :data="ratings" height="400" border>
|
||||
<el-table-column label="评分人" prop="userName" width="120" />
|
||||
<el-table-column label="评分" prop="ratingScore" width="120" align="center">
|
||||
@@ -59,13 +59,13 @@ const averageRating = computed(() => {
|
||||
// 计算最高评分
|
||||
const maxRating = computed(() => {
|
||||
if (ratings.value.length === 0) return 0;
|
||||
return Math.max(...ratings.value.map(rating => rating.ratingScore));
|
||||
return Math.max(...ratings.value.map((rating) => rating.ratingScore));
|
||||
});
|
||||
|
||||
// 加载评分数据
|
||||
const loadRatings = async () => {
|
||||
if (!props.activityId) return;
|
||||
|
||||
|
||||
loading.value = true;
|
||||
try {
|
||||
const res = await getActivityRatings(props.activityId);
|
||||
@@ -101,4 +101,4 @@ onMounted(() => {
|
||||
text-align: center;
|
||||
padding: 60px 20px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in new issue
Block a user