fix: rating

This commit is contained in:
zzc
2026-06-08 23:07:09 +08:00
parent 0dc2c2f0c3
commit ffbd355393
4 changed files with 265 additions and 1 deletions

View File

@@ -1,7 +1,10 @@
<template>
<div class="rating-topic-container">
<vab-query-form>
<vab-query-form-right-panel :span="24">
<vab-query-form-left-panel :span="12">
<el-button icon="el-icon-plus" type="primary" @click="handleAdd">创建话题</el-button>
</vab-query-form-left-panel>
<vab-query-form-right-panel :span="12">
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
<el-form-item>
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入评价主题" />
@@ -103,6 +106,8 @@
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
/>
<topic-edit ref="edit" @fetch-data="fetchData" />
</div>
</template>
@@ -110,9 +115,11 @@
import { getList } from '@/api/rating/topic'
import { formatTime } from '@/utils'
import { getThumbUrl } from '@/utils/blessing'
import TopicEdit from './components/TopicEdit'
export default {
name: 'RatingTopicIndex',
components: { TopicEdit },
data() {
return {
list: [],
@@ -133,6 +140,9 @@
methods: {
formatTime,
getThumbUrl,
handleAdd() {
this.$refs['edit'].showEdit()
},
handleSizeChange(val) {
this.queryForm.pageSize = val
this.fetchData()