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"
>
-
-
+
+
+ 禁用
+ 正常
+
-
-
+
+
+ 否
+ 是
+
+
+
+
+
+
![]()
+
+
+
+
+
@@ -77,13 +93,17 @@
const formDefault = {
commentId: undefined, //主键id
- status: undefined, //评论状态(0:禁用 1:正常)
+ status: 1, //评论状态(0:禁用 1:正常)
+ isTop: 0, //是否置顶(0:否 1:是)
content: undefined, //评论内容
+ commentImage: undefined, //评论图片
};
let form = reactive({ ...formDefault });
const rules = {
+ status: [{ required: true, message: '请选择评论状态' }],
+ isTop: [{ required: true, message: '请选择是否置顶' }],
};
// 点击确定,验证表单
diff --git a/src/views/business/user-comment-clinical-article/user-comment-clinical-article-list.vue b/src/views/business/user-comment-clinical-article/user-comment-clinical-article-list.vue
index 0bf7394..85ba0d4 100644
--- a/src/views/business/user-comment-clinical-article/user-comment-clinical-article-list.vue
+++ b/src/views/business/user-comment-clinical-article/user-comment-clinical-article-list.vue
@@ -9,8 +9,20 @@
-
-
+
+
+
+
+
+ 否
+ 是
+
+
+
+
+ 否
+ 是
+
@@ -34,12 +46,6 @@
-
-
-
-
- 新建
-
@@ -48,29 +54,31 @@
-
-
-
编辑
+
+ {{ record.status === 1 ? '禁用' : '启用' }}
+
+
+ {{ record.isTop === 1 ? '取消置顶' : '置顶' }}
+
删除
@@ -94,110 +102,77 @@
/>
-
-
+
+
+
+
![图片预览]()
+
+
diff --git a/src/views/business/user-comment-clinical-video/user-comment-clinical-video-form.vue b/src/views/business/user-comment-clinical-video/user-comment-clinical-video-form.vue
index dee712a..ecb3d38 100644
--- a/src/views/business/user-comment-clinical-video/user-comment-clinical-video-form.vue
+++ b/src/views/business/user-comment-clinical-video/user-comment-clinical-video-form.vue
@@ -15,15 +15,31 @@
:destroyOnClose="true"
>
-
-
+
+
+ 禁用
+ 正常
+
-
-
+
+
+ 否
+ 是
+
+
+
+
+
+
![]()
+
+
+
+
+
@@ -77,13 +93,17 @@
const formDefault = {
commentId: undefined, //主键id
- status: undefined, //评论状态(0:禁用 1:正常)
+ status: 1, //评论状态(0:禁用 1:正常)
+ isTop: 0, //是否置顶(0:否 1:是)
content: undefined, //评论内容
+ commentImage: undefined, //评论图片
};
let form = reactive({ ...formDefault });
const rules = {
+ status: [{ required: true, message: '请选择评论状态' }],
+ isTop: [{ required: true, message: '请选择是否置顶' }],
};
// 点击确定,验证表单
diff --git a/src/views/business/user-comment-clinical-video/user-comment-clinical-video-list.vue b/src/views/business/user-comment-clinical-video/user-comment-clinical-video-list.vue
index 54a5b07..a5e935e 100644
--- a/src/views/business/user-comment-clinical-video/user-comment-clinical-video-list.vue
+++ b/src/views/business/user-comment-clinical-video/user-comment-clinical-video-list.vue
@@ -9,8 +9,20 @@
-
-
+
+
+
+
+
+ 否
+ 是
+
+
+
+
+ 否
+ 是
+
@@ -34,12 +46,6 @@
-
-
-
-
- 新建
-
@@ -48,29 +54,31 @@
-
-
-
编辑
+
+ {{ record.status === 1 ? '禁用' : '启用' }}
+
+
+ {{ record.isTop === 1 ? '取消置顶' : '置顶' }}
+
删除
@@ -94,110 +102,77 @@
/>
-
-
+
+
+
+
![图片预览]()
+
+
diff --git a/src/views/business/user-comment-exchange/user-comment-exchange-form.vue b/src/views/business/user-comment-exchange/user-comment-exchange-form.vue
index b72714c..34abece 100644
--- a/src/views/business/user-comment-exchange/user-comment-exchange-form.vue
+++ b/src/views/business/user-comment-exchange/user-comment-exchange-form.vue
@@ -15,15 +15,31 @@
:destroyOnClose="true"
>
-
-
+
+
+ 禁用
+ 正常
+
-
-
+
+
+ 否
+ 是
+
+
+
+
+
+
![]()
+
+
+
+
+
@@ -77,13 +93,17 @@
const formDefault = {
commentId: undefined, //主键id
- status: undefined, //评论状态(0:禁用 1:正常)
+ status: 1, //评论状态(0:禁用 1:正常)
+ isTop: 0, //是否置顶(0:否 1:是)
content: undefined, //评论内容
+ commentImage: undefined, //评论图片
};
let form = reactive({ ...formDefault });
const rules = {
+ status: [{ required: true, message: '请选择评论状态' }],
+ isTop: [{ required: true, message: '请选择是否置顶' }],
};
// 点击确定,验证表单
diff --git a/src/views/business/user-comment-exchange/user-comment-exchange-list.vue b/src/views/business/user-comment-exchange/user-comment-exchange-list.vue
index 9de99bb..3d259e8 100644
--- a/src/views/business/user-comment-exchange/user-comment-exchange-list.vue
+++ b/src/views/business/user-comment-exchange/user-comment-exchange-list.vue
@@ -9,8 +9,20 @@
-
-
+
+
+
+
+
+ 否
+ 是
+
+
+
+
+ 否
+ 是
+
@@ -34,12 +46,6 @@
-
-
-
-
- 新建
-
@@ -48,29 +54,31 @@
-
-
-
编辑
+
+ {{ record.status === 1 ? '禁用' : '启用' }}
+
+
+ {{ record.isTop === 1 ? '取消置顶' : '置顶' }}
+
删除
@@ -94,110 +102,77 @@
/>
-
-
+
+
+
+
![图片预览]()
+
+