评论管理
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
<ai-info-item label="排序" :value="info.showIndex"></ai-info-item>
|
||||
<ai-info-item label="状态" :value="dict.getLabel('qjExamineStatus', info.examineStatus)"></ai-info-item>
|
||||
<ai-info-item label="已学习人数" :value="info.learnerNumber"></ai-info-item>
|
||||
<ai-info-item label="评论数" :value="info.msgCount"></ai-info-item>
|
||||
<ai-info-item label="评论数" :value="info.msgCount">
|
||||
<el-link type="primary" @click="toComment">{{ info.msgCount }}</el-link>
|
||||
</ai-info-item>
|
||||
<ai-info-item label="课程类型" :value="dict.getLabel('qjCourseType', info.courseType)"></ai-info-item>
|
||||
<ai-info-item label="正文" v-if="info.courseType === '0'" isLine>
|
||||
<AiArticle :value="info.content"></AiArticle>
|
||||
@@ -59,14 +61,12 @@
|
||||
|
||||
data () {
|
||||
return {
|
||||
info: {},
|
||||
id: ''
|
||||
info: {}
|
||||
}
|
||||
},
|
||||
|
||||
created () {
|
||||
if (this.params && this.params.id) {
|
||||
this.id = this.params.id
|
||||
this.getInfo(this.params.id)
|
||||
}
|
||||
},
|
||||
@@ -80,6 +80,15 @@
|
||||
})
|
||||
},
|
||||
|
||||
toComment () {
|
||||
this.$emit('change', {
|
||||
type: 'Comment',
|
||||
params: {
|
||||
id: this.params.id
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
cancel (isRefresh) {
|
||||
this.$emit('change', {
|
||||
type: 'List',
|
||||
|
||||
Reference in New Issue
Block a user