From 69d2aac8bb1ff02ed35f0754479e04e7cece3a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Wed, 18 Jun 2025 17:20:41 +0800 Subject: [PATCH] tijiao --- src/assets/css/main.css | 10 +- src/components/page/articleListEditor.vue | 7 + src/components/page/articleListEditor_A.vue | 45 +++-- src/components/page/articleReviewer.vue | 5 +- src/components/page/articleReviewerAIAdd.vue | 37 +++- src/components/page/articleReviewerAdd.vue | 169 +++++++++++++----- .../page/components/major/tableList.vue | 15 +- 7 files changed, 208 insertions(+), 80 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 3430021..66e9d7c 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -1449,4 +1449,12 @@ wmath { .ML__keyboard { z-index: 99999 !important; position: fixed !important; -} \ No newline at end of file +} +.sticky-header { + position: sticky; + top: 0; + z-index: 1000; /* 保证在上层 */ + background-color: transparent; + /* padding: 10px; */ + box-shadow: 0 2px 2px rgba(221, 221, 221, 0.2); + } \ No newline at end of file diff --git a/src/components/page/articleListEditor.vue b/src/components/page/articleListEditor.vue index f452ffd..2575826 100644 --- a/src/components/page/articleListEditor.vue +++ b/src/components/page/articleListEditor.vue @@ -7,6 +7,8 @@ --> + +

Edit

@@ -25,6 +27,7 @@
+
@@ -153,6 +156,7 @@ export default { diff --git a/src/components/page/articleListEditor_A.vue b/src/components/page/articleListEditor_A.vue index dde9647..2f531a9 100644 --- a/src/components/page/articleListEditor_A.vue +++ b/src/components/page/articleListEditor_A.vue @@ -51,6 +51,7 @@ Search
+

Author's previous articles - - + @@ -1357,7 +1358,11 @@ Close - +

@@ -1444,9 +1449,7 @@ export default { // { // state: 7 // }, - { - state: 7 - }, + { state: 6 }, @@ -1562,6 +1565,22 @@ export default { } }, methods: { + saveMajor() { + this.$api + .post('api/Reviewer/updateUserField', { + article_id: this.majorMes.article_id, + user_field: this.majorValueList.map((item) => item.selectedValue[item.selectedValue.length - 1]).toString(',') + }) + .then((res) => { + if (res.status == 1) { + this.$message.success('Success'); + + this.fetchMajorData(this.majorMes.article_id); + } else { + this.$message.error(res.msg); + } + }); + }, async fetchMajorData(article_id) { // if (!this.majorData[userId]) { // 判断是否已经加载过该用户的数据 @@ -1573,8 +1592,8 @@ export default { // 修改标记 async getMajorData(article_id) { try { - const res = await this.$api.post('api/Article/getArticleDetail', { articleId: article_id, human: 'editor' }); - if (res.article&&res.article.majors.length>0) { + const res = await this.$api.post('api/Article/getArticleDetail', { articleId: article_id, human: 'editor' }); + if (res.article && res.article.majors.length > 0) { return res.article.majors; // 返回数据 } else { return []; // 如果没有数据,返回空数组 @@ -1589,11 +1608,11 @@ export default { // this.majorMes.realname = e.realname; // this.majorMes.user_id = e.user_id; this.majorMes.title = e.title; + this.majorMes.article_id = e.article_id; this.$api - .post('api/Article/getArticleDetail', { - articleId: e.article_id, - human: 'editor' + .post('api/Article/getArticleField', { + article_id: e.article_id }) .then((res) => { if (this.majorMes.disabled) { @@ -2786,9 +2805,7 @@ export default { position: relative; } .mangu_list:hover { - border: 1px solid #0077b8e6; - } .mangu_list:nth-child(2n + 1) { @@ -3099,6 +3116,6 @@ export default { border-top: none !important; } .mangu_list div.fi_new div > div:nth-child(1) { - margin-top: 0px; + margin-top: 0px; } diff --git a/src/components/page/articleReviewer.vue b/src/components/page/articleReviewer.vue index 1de481d..40acb32 100644 --- a/src/components/page/articleReviewer.vue +++ b/src/components/page/articleReviewer.vue @@ -29,6 +29,7 @@

-

+

Company: {{ scope.row.company }}

@@ -138,7 +139,7 @@
- Cancel + Cancel - + @@ -39,6 +49,16 @@ + + + - + - + @@ -87,7 +107,12 @@