Commit ff268a9e by 前端

Merge branch 'v3.11.1' into 'master'

V3.11.1

See merge request !491
2 parents d56fe0f3 dfb9222d
...@@ -58,18 +58,18 @@ export default { ...@@ -58,18 +58,18 @@ export default {
], ],
// 表格按钮 // 表格按钮
tableButtonList: [ tableButtonList: [
{ // {
type: 'el-button', // type: 'el-button',
name: row => { // name: row => {
return row.commentStatus == '0' ? '发布' : '撤回' // return row.commentStatus == '0' ? '发布' : '撤回'
}, // },
attrs: { // attrs: {
type: 'text' // type: 'text'
}, // },
listeners: { // listeners: {
click: this.handleRevoke // click: this.handleRevoke
} // }
}, // },
{ {
type: 'GLButton', type: 'GLButton',
name: '查看', name: '查看',
...@@ -188,11 +188,11 @@ export default { ...@@ -188,11 +188,11 @@ export default {
}) })
}, },
// 发布/撤回 // // 发布/撤回
handleRevoke(row) { // handleRevoke(row) {
var txt = row.commentStatus == '0' ? '发布' : '撤回' // var txt = row.commentStatus == '0' ? '发布' : '撤回'
this.secondConfirm(txt, '是否确认' + txt + '该评论?', 'orderComment', 'changeCommentStatusApi', { id: row.id, commentStatus: row.commentStatus == '0' ? 1 : 0 }) // this.secondConfirm(txt, '是否确认' + txt + '该评论?', 'orderComment', 'changeCommentStatusApi', { id: row.id, commentStatus: row.commentStatus == '0' ? 1 : 0 })
}, // },
handleDelete(row) { handleDelete(row) {
this.secondConfirm('删除', '是否确认删除该评论?', 'orderComment', 'deleteCommentApi', { id: row.id }) this.secondConfirm('删除', '是否确认删除该评论?', 'orderComment', 'deleteCommentApi', { id: row.id })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!