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 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
+
+
+
-
-
-
-