From 8d94ba0bb99fa5c6ae73f0d1096f4ebeaa4f3d06 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: Mon, 19 Aug 2024 15:02:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=9C=E8=80=85=E5=92=8C?= =?UTF-8?q?=E5=B9=B4=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/langs/en.js | 14 ++++-- src/components/common/langs/zh.js | 6 +++ src/components/page/citeList.vue | 76 ++++++++++++++++++++----------- 3 files changed, 66 insertions(+), 30 deletions(-) diff --git a/src/components/common/langs/en.js b/src/components/common/langs/en.js index 93f5b48..798442d 100644 --- a/src/components/common/langs/en.js +++ b/src/components/common/langs/en.js @@ -187,7 +187,7 @@ const en = { Cancel: 'Cancel', Prompt: '提示', Prompt: 'Prompt', - },citeList: { + }, citeList: { refresh: 'Check', search: 'Search', yes: 'Yes', @@ -214,9 +214,15 @@ const en = { dialogQueryButton: 'Search', dialogQueryButtonInfo: 'You can click the "Search" on the right to automatically identify and quickly fill in all the current fields', dialogQueryButtonErrInfo: 'You can click the "Search" on the right to automatically identify and quickly fill in all the current fields', - rulesDoiInfo:'Please enter Doi', - rulesJournalInfo:'Please enter the journal title', - rulesArticleInfo:'Please enter the article title', + rulesDoiInfo: 'Please enter Doi', + rulesJournalInfo: 'Please enter the journal title', + rulesAuthorInfo: 'Please enter the author', + rulesVolInfo: 'Please enter the publication time', + rulesArticleInfo: 'Please enter the article title', + authorInfo: 'Six or less authors are required to list all authors while more than six authors are required to list three of them with “et al”.', + author: 'Author(s)', + publicationTime: 'Year', + publicationTimeInfo: 'Year;Volume(issue):Inclusive page numbers.', }, } diff --git a/src/components/common/langs/zh.js b/src/components/common/langs/zh.js index 3d8e4e8..55b609c 100644 --- a/src/components/common/langs/zh.js +++ b/src/components/common/langs/zh.js @@ -213,7 +213,13 @@ const zh = { dialogQueryButtonErrInfo: '暂无相关信息', rulesDoiInfo:'请输入Doi', rulesJournalInfo:'请输入期刊标题', + rulesAuthorInfo: '请输入作者', + rulesVolInfo: '请输入出版时间', rulesArticleInfo:'请输入文章标题', + authorInfo:'六位或更少的作者需要列出所有作者,而六位以上的作者需要在“et al”中列出其中三位作者。', + author:'作者', + publicationTime:'年份', + publicationTimeInfo: '年份;卷(期):包括页码。', }, } diff --git a/src/components/page/citeList.vue b/src/components/page/citeList.vue index 070efef..50d38a0 100644 --- a/src/components/page/citeList.vue +++ b/src/components/page/citeList.vue @@ -55,18 +55,23 @@ + + + + + - + @@ -200,7 +225,7 @@ - + { - if (res.data.result) { - this.doi_num = 1; - var result = res.data.result; - console.log('result at line 595:', result); + // if (res.data.result) { + this.doi_num = 1; + var result = res.data; + console.log('result at line 595:', result); + this.doiForm = { + doi: this.refenceForm.doi, - this.doiForm = { - doi: this.refenceForm.doi, + article_name: result.article_title ? result.article_title : '', + journal_name: result.journal_title ? result.journal_title : '', + vol: result.year ? result.year : '', + author: result.author ? result.author : '' + }; - article_name: result.article_title ? result.article_title : '', - journal_name: result.journal_title ? result.journal_title : '' - }; - this.refenceForm = { ...this.refenceForm, ...this.doiForm }; - } + this.refenceForm = { ...this.refenceForm, ...this.doiForm }; + // } }); } else { this.doi_num = 2;