Commit f7ebdf08 authored by 陈伟's avatar 陈伟

Merge branch 'hotfix/bug02' into 'dev'

Hotfix/bug02

See merge request alpha/sun!9
parents 71db8135 e6ef6685
...@@ -219,6 +219,13 @@ ...@@ -219,6 +219,13 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="是否下线">
<template slot-scope="scope">
<el-tag :type="scope.row.is_online | isOnlineFilter">{{ scope.row.is_online=== 1 ? '是' : '否' }}</el-tag>
</template>
</el-table-column>
<el-table-column label="评论内容"> <el-table-column label="评论内容">
<template slot-scope="scope"> <template slot-scope="scope">
<span >{{ scope.row.content }}</span> <span >{{ scope.row.content }}</span>
...@@ -310,6 +317,15 @@ ...@@ -310,6 +317,15 @@
type: Boolean, type: Boolean,
default: false default: false
} }
},
filters: {
isOnlineFilter(status) {
const statusMap = {
1: 'success',
0: 'info',
}
return statusMap[status]
},
}, },
data() { data() {
const validateRequire = (rule, value, callback) => { const validateRequire = (rule, value, callback) => {
...@@ -340,7 +356,6 @@ ...@@ -340,7 +356,6 @@
rules: { rules: {
posting_time: [{validator: validateRequire, trigger: 'blur'}], posting_time: [{validator: validateRequire, trigger: 'blur'}],
}, },
ReplyTypeOptions: [ ReplyTypeOptions: [
{'key': '1', 'display_name': '帖主的评论'}, {'key': '1', 'display_name': '帖主的评论'},
{'key': '2', 'display_name': '评论帖子'}, {'key': '2', 'display_name': '评论帖子'},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment