rating
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user