This commit is contained in:
zzc
2026-06-01 16:05:28 +08:00
parent 77ca847b38
commit f3c42fb83c
3 changed files with 173 additions and 0 deletions

View File

@@ -31,6 +31,12 @@
/>
<el-table v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText">
<el-table-column align="center" fixed="left" label="操作" width="100">
<template #default="{ row }">
<el-button type="text" @click="handleRating(row)">评价</el-button>
</template>
</el-table-column>
<el-table-column align="left" label="评价项" min-width="200">
<template #default="{ row }">
<div class="item-info-cell">
@@ -130,6 +136,8 @@
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
/>
<topic-item-rating-edit ref="ratingEdit" @fetch-data="fetchData" />
</div>
</template>
@@ -138,9 +146,11 @@
import { getList as getTopicList } from '@/api/rating/topic'
import { formatTime } from '@/utils'
import { getThumbUrl } from '@/utils/blessing'
import TopicItemRatingEdit from './components/TopicItemRatingEdit'
export default {
name: 'RatingTopicItemIndex',
components: { TopicItemRatingEdit },
data() {
return {
list: [],
@@ -216,6 +226,9 @@
this.listLoading = false
}
},
handleRating(row) {
this.$refs['ratingEdit'].showEdit(row, this.queryForm.topicId)
},
},
}
</script>