From 01598aaac1b5940eb6fb0536345acc02cd419acb Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 12 Aug 2025 15:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user-comment-clinical-article-api.js | 19 ++ .../user-comment-clinical-video-api.js | 19 ++ .../user-comment-exchange-api.js | 19 ++ .../case-exchange/case-exchange-const.js | 12 + .../user-comment-clinical-article-form.vue | 30 +- .../user-comment-clinical-article-list.vue | 305 +++++++++-------- .../user-comment-clinical-video-form.vue | 30 +- .../user-comment-clinical-video-list.vue | 304 +++++++++-------- .../user-comment-exchange-form.vue | 30 +- .../user-comment-exchange-list.vue | 306 ++++++++++-------- 10 files changed, 677 insertions(+), 397 deletions(-) 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" > - - + + + 禁用 + 正常 + - - + + + + + + +
+
+
+ +
+
+
+ +