diff --git a/src/api/business/user-comment-clinical-article/user-comment-clinical-article-api.js b/src/api/business/user-comment-clinical-article/user-comment-clinical-article-api.js index a980eb5..a40c491 100644 --- a/src/api/business/user-comment-clinical-article/user-comment-clinical-article-api.js +++ b/src/api/business/user-comment-clinical-article/user-comment-clinical-article-api.js @@ -30,6 +30,25 @@ export const userCommentClinicalArticleApi = { return postRequest('/userCommentClinicalArticle/update', param); }, + /** + * 修改评论状态 @author xing + */ + updateStatus: (commentId, status) => { + return postRequest('/userCommentClinicalArticle/updateStatus', { + commentId: commentId, + status: status + }); + }, + + /** + * 修改置顶状态 @author xing + */ + updateTopStatus: (commentId, isTop) => { + return postRequest('/userCommentClinicalArticle/updateTopStatus', { + commentId: commentId, + isTop: isTop + }); + }, /** * 删除 @author xing diff --git a/src/api/business/user-comment-clinical-video/user-comment-clinical-video-api.js b/src/api/business/user-comment-clinical-video/user-comment-clinical-video-api.js index d1e5992..b98e340 100644 --- a/src/api/business/user-comment-clinical-video/user-comment-clinical-video-api.js +++ b/src/api/business/user-comment-clinical-video/user-comment-clinical-video-api.js @@ -30,6 +30,25 @@ export const userCommentClinicalVideoApi = { return postRequest('/userCommentClinicalVideo/update', param); }, + /** + * 修改评论状态 @author xing + */ + updateStatus: (commentId, status) => { + return postRequest('/userCommentClinicalVideo/updateStatus', { + commentId: commentId, + status: status + }); + }, + + /** + * 修改置顶状态 @author xing + */ + updateTopStatus: (commentId, isTop) => { + return postRequest('/userCommentClinicalVideo/updateTopStatus', { + commentId: commentId, + isTop: isTop + }); + }, /** * 删除 @author xing diff --git a/src/api/business/user-comment-exchange/user-comment-exchange-api.js b/src/api/business/user-comment-exchange/user-comment-exchange-api.js index 882471b..f2c44a4 100644 --- a/src/api/business/user-comment-exchange/user-comment-exchange-api.js +++ b/src/api/business/user-comment-exchange/user-comment-exchange-api.js @@ -30,6 +30,25 @@ export const userCommentExchangeApi = { return postRequest('/userCommentExchange/update', param); }, + /** + * 修改评论状态 @author xing + */ + updateStatus: (commentId, status) => { + return postRequest('/userCommentExchange/updateStatus', { + commentId: commentId, + status: status + }); + }, + + /** + * 修改置顶状态 @author xing + */ + updateTopStatus: (commentId, isTop) => { + return postRequest('/userCommentExchange/updateTopStatus', { + commentId: commentId, + isTop: isTop + }); + }, /** * 删除 @author xing diff --git a/src/constants/business/case-exchange/case-exchange-const.js b/src/constants/business/case-exchange/case-exchange-const.js index 9dd2c66..7c88e88 100644 --- a/src/constants/business/case-exchange/case-exchange-const.js +++ b/src/constants/business/case-exchange/case-exchange-const.js @@ -38,8 +38,20 @@ export const SELECTED_ENUM = { }, }; +export const AUDIT_STATUS_ENUM = { + PENDING: { + value: 0, + desc: '待审核', + }, + APPROVED: { + value: 1, + desc: '已审核', + }, +}; + export default { STATUS_ENUM, DELETE_STATUS_ENUM, SELECTED_ENUM, + AUDIT_STATUS_ENUM, }; \ No newline at end of file diff --git a/src/views/business/user-comment-clinical-article/user-comment-clinical-article-form.vue b/src/views/business/user-comment-clinical-article/user-comment-clinical-article-form.vue index fff3360..f8d3ac3 100644 --- a/src/views/business/user-comment-clinical-article/user-comment-clinical-article-form.vue +++ b/src/views/business/user-comment-clinical-article/user-comment-clinical-article-form.vue @@ -15,15 +15,31 @@ :destroyOnClose="true" > - - + + + 禁用 + 正常 + - - + + + + + + +
+
+
+ +
+
+
+ +