From 09dda4283f9bdb60bb8b5fa09977bf9399a42724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A6=8D=E6=B4=81?= <16391855+wang-yanjie1218@user.noreply.gitee.com> Date: Thu, 15 Jan 2026 10:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BD=E5=8C=BBPC=E7=AB=AF=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=96=B0=E5=A2=9E=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chenhai-ui/src/api/vet/article.js | 8 + chenhai-ui/src/views/vet/article/index.vue | 218 +++++++++--------- .../src/views/vet/notification/index.vue | 30 +-- 3 files changed, 131 insertions(+), 125 deletions(-) diff --git a/chenhai-ui/src/api/vet/article.js b/chenhai-ui/src/api/vet/article.js index eee61be..96dc4d0 100644 --- a/chenhai-ui/src/api/vet/article.js +++ b/chenhai-ui/src/api/vet/article.js @@ -84,6 +84,14 @@ export function getArticleOptions() { }); } +// 获取文章统计信息 +export function getMySimpleStats() { + return request({ + url: '/vet/article/my/simpleStats', + method: 'get' + }); +} + // 查询兽医经验文章列表 export function listArticle(query) { return request({ diff --git a/chenhai-ui/src/views/vet/article/index.vue b/chenhai-ui/src/views/vet/article/index.vue index a03d95b..a9ac69f 100644 --- a/chenhai-ui/src/views/vet/article/index.vue +++ b/chenhai-ui/src/views/vet/article/index.vue @@ -27,13 +27,13 @@ - - + + @@ -109,10 +109,10 @@
{{ tags.label }} @@ -139,12 +139,15 @@
+
+ +
- + @@ -155,97 +158,97 @@ - - 修改 - - - 删除 - - - 导出 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -347,7 +350,7 @@ - + @@ -444,7 +447,7 @@ export default { categoryId: null, categoryName: null, - taglistName: null, + tagOptionsName: null, tags: null, isTop: null, @@ -473,7 +476,7 @@ export default { // 分类列表 categories: [], // 标签列表 - taglist: [], + tagOptions: [], } }, @@ -500,13 +503,7 @@ export default { /* 查看我的所有文章 */ handleViewMyArticles() { this.flag = true - this.queryParams.pageNum = 1 this.queryParams.vetId = this.$store.state.user.userId; - const query = { - pageNum: 1, - pageSize: 10, - vetId: this.$store.state.user.userId - } getMyForumArticles(this.queryParams).then((response) => { if (response.code === 200) { this.articleList = response.data; @@ -784,6 +781,7 @@ export default { /* 操作按钮 */ .forum-main { flex: 1; + margin-left: 10px; } .forum-actions { diff --git a/chenhai-ui/src/views/vet/notification/index.vue b/chenhai-ui/src/views/vet/notification/index.vue index a09a43b..d2f734b 100644 --- a/chenhai-ui/src/views/vet/notification/index.vue +++ b/chenhai-ui/src/views/vet/notification/index.vue @@ -212,35 +212,35 @@ @pagination="getList" /> - + - - - + + + - - - + + + - - - - - - - - + + + + + + + +