diff --git a/chenhai-ui/src/api/vet/article.js b/chenhai-ui/src/api/vet/article.js index 6e0156a..18985f1 100644 --- a/chenhai-ui/src/api/vet/article.js +++ b/chenhai-ui/src/api/vet/article.js @@ -18,6 +18,17 @@ export function listMyArticle(query) { }) } +// 获取草稿列表 +export function listDraft() { + return request({ + url: '/vet/article/draftList', + method: 'get' + }) +} + + + + // 查询兽医经验文章详细(包含相关文章) export function getArticle(id) { return request({ @@ -121,12 +132,13 @@ export function searchArticles(keyword) { }) } -export function getForumHome() { - return request({ - url: '/vet/article/statistics', - method: 'get' - }) -} +// 获取论坛统计 +// export function getForumHome() { +// return request({ +// url: '/vet/article/statistics', +// method: 'get' +// }) +// } // 论坛文章详情 export function getForumDetail(id) { diff --git a/chenhai-ui/src/api/vet/product.js b/chenhai-ui/src/api/vet/product.js index 552b423..995030b 100644 --- a/chenhai-ui/src/api/vet/product.js +++ b/chenhai-ui/src/api/vet/product.js @@ -42,44 +42,3 @@ export function delProduct(id) { method: 'delete' }) } - -// 提交审核 -export function submitAudit(id) { - return request({ - url: '/vet/product/submitAudit/' + id, - method: 'post' - }) -} - -// 审核产品 -export function auditProduct(data) { - return request({ - url: '/vet/product/audit', - method: 'post', - data: data - }) -} - -// 上架产品 -export function publishProduct(id) { - return request({ - url: '/vet/product/publish/' + id, - method: 'post' - }) -} - -// 下架产品 -export function offlineProduct(id) { - return request({ - url: '/vet/product/offline/' + id, - method: 'post' - }) -} - -// 取消审核 -export function cancelAudit(id) { - return request({ - url: '/vet/product/cancelAudit/' + id, - method: 'post' - }) -} diff --git a/chenhai-ui/src/api/vet/qualification.js b/chenhai-ui/src/api/vet/qualification.js index 1eb029c..4aefef0 100644 --- a/chenhai-ui/src/api/vet/qualification.js +++ b/chenhai-ui/src/api/vet/qualification.js @@ -96,6 +96,14 @@ export function getQualification(qualificationId, certId) { }) } +// 查看证书详情 +export function listQualificationCertificates(qualificationId) { + return request({ + url: '/vet/qualification/certificate/' + qualificationId + '/list', + method: 'get' + }) +} + // 证书详情 export function getQualificationCertificate(certId) { return request({ diff --git a/chenhai-ui/src/assets/images/tongzhi.png b/chenhai-ui/src/assets/images/tongzhi.png index b9f1522..62b0020 100644 Binary files a/chenhai-ui/src/assets/images/tongzhi.png and b/chenhai-ui/src/assets/images/tongzhi.png differ diff --git a/chenhai-ui/src/assets/images/tz.png b/chenhai-ui/src/assets/images/tz.png deleted file mode 100644 index c8da7ab..0000000 Binary files a/chenhai-ui/src/assets/images/tz.png and /dev/null differ diff --git a/chenhai-ui/src/assets/images/tz1.png b/chenhai-ui/src/assets/images/tz1.png deleted file mode 100644 index 62b0020..0000000 Binary files a/chenhai-ui/src/assets/images/tz1.png and /dev/null differ diff --git a/chenhai-ui/src/layout/components/Navbar.vue b/chenhai-ui/src/layout/components/Navbar.vue index ab991bc..07a1d5e 100644 --- a/chenhai-ui/src/layout/components/Navbar.vue +++ b/chenhai-ui/src/layout/components/Navbar.vue @@ -119,7 +119,7 @@ export default { }).then(() => { const userRole = this.$store.state.user.roles[0]; this.$store.dispatch('LogOut').then(() => { - if (userRole === 'vetnotshenhe') { + if (userRole === 'vet' || userRole === 'vetnotshenhe') { location.href = '/login'; } else { location.href = '/loginGld'; diff --git a/chenhai-ui/src/views/index.vue b/chenhai-ui/src/views/index.vue index 3338ea6..6ba581f 100644 --- a/chenhai-ui/src/views/index.vue +++ b/chenhai-ui/src/views/index.vue @@ -1,8 +1,10 @@ @@ -21,8 +23,12 @@ export default { } }, computed: { + // userRole() { + // return this.$store.state.user.roles[0]; + // } userRole() { - return this.$store.state.user.roles[0]; + const roles = this.$store.state.user?.roles || []; + return roles[0] || ''; } }, methods: { diff --git a/chenhai-ui/src/views/loginGld.vue b/chenhai-ui/src/views/loginGld.vue index 2766ea9..b280a63 100644 --- a/chenhai-ui/src/views/loginGld.vue +++ b/chenhai-ui/src/views/loginGld.vue @@ -205,8 +205,7 @@ export default { diff --git a/chenhai-ui/src/views/vet/article/index.vue b/chenhai-ui/src/views/vet/article/index.vue index 5507c25..dbef318 100644 --- a/chenhai-ui/src/views/vet/article/index.vue +++ b/chenhai-ui/src/views/vet/article/index.vue @@ -1,401 +1,581 @@ - + @@ -262,25 +273,25 @@ - - - - -
- 提示:选择为您推荐药品的专家 -
-
+ + + + +
+ 提示:选择为您推荐药品的专家 +
+
@@ -877,4 +888,32 @@ export default { max-height: 400px; overflow-y: auto; } + +/* 操作按钮 */ +.info-btn { + padding: 6px 10px; + border-radius: 4px; + margin: 0 10px; + transition: all 0.3s ease; +} + +.view-btn:hover { + background-color: rgb(216, 238, 248); + transform: translateY(-1px); +} + +.offline-btn:hover{ + background-color: rgba(243, 239, 231, 100); + transform: translateY(-1px); +} + +.alter-btn:hover{ + background-color: rgb(230, 255, 238); + transform: translateY(-1px); +} + +.delete-btn:hover { + background-color: rgba(245, 108, 108, 0.1); + transform: translateY(-1px); +} diff --git a/chenhai-ui/src/views/vet/notification/index.vue b/chenhai-ui/src/views/vet/notification/index.vue index d2f734b..e5184fa 100644 --- a/chenhai-ui/src/views/vet/notification/index.vue +++ b/chenhai-ui/src/views/vet/notification/index.vue @@ -513,8 +513,8 @@ export default { } .info-icon { - width: 30px; - height: 30px; + width: 40px; + height: 40px; margin-right: 15px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)); } diff --git a/chenhai-ui/src/views/vet/product/index.vue b/chenhai-ui/src/views/vet/product/index.vue index 6417805..f14b15d 100644 --- a/chenhai-ui/src/views/vet/product/index.vue +++ b/chenhai-ui/src/views/vet/product/index.vue @@ -1,13 +1,6 @@ diff --git a/chenhai-ui/src/views/vet/qualification/index.vue b/chenhai-ui/src/views/vet/qualification/index.vue index 773fd98..f541719 100644 --- a/chenhai-ui/src/views/vet/qualification/index.vue +++ b/chenhai-ui/src/views/vet/qualification/index.vue @@ -64,39 +64,39 @@
- - - 新增 - - - 修改 - - - 删除 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -107,9 +107,10 @@ - - + + + @@ -121,7 +122,7 @@ - - + - + - + @@ -366,6 +369,7 @@
+
- - + @@ -456,6 +459,7 @@ diff --git a/chenhai-ui/src/views/vet/training/index.vue b/chenhai-ui/src/views/vet/training/index.vue index 431494f..9f95e28 100644 --- a/chenhai-ui/src/views/vet/training/index.vue +++ b/chenhai-ui/src/views/vet/training/index.vue @@ -93,8 +93,8 @@ {{ scope.row.publisherName || '-' }} - - + +