新闻中心 新增评论模块

This commit is contained in:
yanran200730
2023-02-20 10:13:27 +08:00
parent a1c7972f9d
commit 38a6ace8d2
3 changed files with 139 additions and 2 deletions

View File

@@ -36,9 +36,10 @@
</div>
</template>
</el-table-column>
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center">
<el-table-column slot="options" width="200px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="toComment(row.id)">评论管理</el-button>
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button>
@@ -133,6 +134,15 @@
})
},
toComment(id) {
this.$emit('change', {
type: 'Comment',
params: {
id
}
})
},
toAdd(id) {
this.$emit('change', {
type: 'Add',