|
|
|
@ -41,7 +41,7 @@ |
|
|
|
<span>表达态度 {{dataForm.approveNum + dataForm.opposeNum + dataForm.commentNum}}</span> |
|
|
|
<span>评论 {{dataForm.commentNum}}</span> |
|
|
|
<span>支持 {{dataForm.approveNum}}</span> |
|
|
|
<span>反对 {{dataForm.opposeNum}}</span> |
|
|
|
<span>不支持 {{dataForm.opposeNum}}</span> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="项目评论:"> |
|
|
|
<el-button type="text" |
|
|
|
@ -455,7 +455,7 @@ export default { |
|
|
|
this.getCommentList() |
|
|
|
}, |
|
|
|
getCommentList () { |
|
|
|
this.$http.get('/events/item/comments', { params: { id: this.dataForm.id, order: this.order, orderField: this.orderField, page: this.pageIndex, limit: this.limitVal } |
|
|
|
this.$http.get('/events/item/comments', { params: { id: this.dataForm.id, order: this.order, orderField: this.orderField, page: this.pageIndex, limit: this.limitVal } |
|
|
|
}).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
this.commentsDTOs = [] |
|
|
|
@ -511,21 +511,21 @@ export default { |
|
|
|
this.isAble = true |
|
|
|
this.$http['post']( |
|
|
|
'/events/item/itemHandleSubmit', this.postDataForm).then(({ data: res }) => { |
|
|
|
this.isAble = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
this.isAble = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}).catch(() => { }) |
|
|
|
}) |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}).catch(() => { }) |
|
|
|
}, 1000, { 'leading': true, 'trailing': false }) |
|
|
|
|
|
|
|
} |
|
|
|
|