新闻中心 新增评论模块
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user