添加作者和年份
This commit is contained in:
@@ -187,7 +187,7 @@ const en = {
|
|||||||
Cancel: 'Cancel',
|
Cancel: 'Cancel',
|
||||||
Prompt: '提示',
|
Prompt: '提示',
|
||||||
Prompt: 'Prompt',
|
Prompt: 'Prompt',
|
||||||
},citeList: {
|
}, citeList: {
|
||||||
refresh: 'Check',
|
refresh: 'Check',
|
||||||
search: 'Search',
|
search: 'Search',
|
||||||
yes: 'Yes',
|
yes: 'Yes',
|
||||||
@@ -214,9 +214,15 @@ const en = {
|
|||||||
dialogQueryButton: 'Search',
|
dialogQueryButton: 'Search',
|
||||||
dialogQueryButtonInfo: 'You can click the "Search" on the right to automatically identify and quickly fill in all the current fields',
|
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',
|
dialogQueryButtonErrInfo: 'You can click the "Search" on the right to automatically identify and quickly fill in all the current fields',
|
||||||
rulesDoiInfo:'Please enter Doi',
|
rulesDoiInfo: 'Please enter Doi',
|
||||||
rulesJournalInfo:'Please enter the journal title',
|
rulesJournalInfo: 'Please enter the journal title',
|
||||||
rulesArticleInfo:'Please enter the article 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.',
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,7 +213,13 @@ const zh = {
|
|||||||
dialogQueryButtonErrInfo: '暂无相关信息',
|
dialogQueryButtonErrInfo: '暂无相关信息',
|
||||||
rulesDoiInfo:'请输入Doi',
|
rulesDoiInfo:'请输入Doi',
|
||||||
rulesJournalInfo:'请输入期刊标题',
|
rulesJournalInfo:'请输入期刊标题',
|
||||||
|
rulesAuthorInfo: '请输入作者',
|
||||||
|
rulesVolInfo: '请输入出版时间',
|
||||||
rulesArticleInfo:'请输入文章标题',
|
rulesArticleInfo:'请输入文章标题',
|
||||||
|
authorInfo:'六位或更少的作者需要列出所有作者,而六位以上的作者需要在“et al”中列出其中三位作者。',
|
||||||
|
author:'作者',
|
||||||
|
publicationTime:'年份',
|
||||||
|
publicationTimeInfo: '年份;卷(期):包括页码。',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,18 +55,23 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
<p v-if="scope.row.doi">
|
<p v-if="scope.row.doi">
|
||||||
<span style="display: inline-block; width: 100px; color: #333; font-weight: 600">Doi:</span
|
<span :style="`display: inline-block; width: ${tableWidth}px; color: #333; font-weight: 600`">Doi:</span
|
||||||
><a class="doiLink" v-if="scope.row.doi" :href="`http://doi.org/${scope.row.doi}`" target="_blank">{{
|
><a class="doiLink" v-if="scope.row.doi" :href="`http://doi.org/${scope.row.doi}`" target="_blank">{{
|
||||||
scope.row.doi
|
scope.row.doi
|
||||||
}}</a>
|
}}</a>
|
||||||
</p>
|
</p>
|
||||||
|
<p v-if="scope.row.author">
|
||||||
|
<span :style="`display: inline-block; width: ${tableWidth}px; color: #333; font-weight: 600`"
|
||||||
|
>{{ $t('citeList.author') }}:</span
|
||||||
|
>{{ scope.row.author }}
|
||||||
|
</p>
|
||||||
<p v-if="scope.row.journal_name">
|
<p v-if="scope.row.journal_name">
|
||||||
<span style="display: inline-block; width: 100px; color: #333; font-weight: 600"
|
<span :style="`display: inline-block; width: ${tableWidth}px; color: #333; font-weight: 600`"
|
||||||
>{{ $t('citeList.journalTitle') }}:</span
|
>{{ $t('citeList.journalTitle') }}:</span
|
||||||
>{{ scope.row.journal_name }}
|
>{{ scope.row.journal_name }}
|
||||||
</p>
|
</p>
|
||||||
<p v-if="scope.row.article_name">
|
<p v-if="scope.row.article_name">
|
||||||
<span style="display: inline-block; width: 100px; color: #333; font-weight: 600"
|
<span :style="`display: inline-block; width: ${tableWidth}px; color: #333; font-weight: 600`"
|
||||||
>{{ $t('citeList.articleTitle') }}:</span
|
>{{ $t('citeList.articleTitle') }}:</span
|
||||||
>{{ scope.row.article_name }}
|
>{{ scope.row.article_name }}
|
||||||
</p>
|
</p>
|
||||||
@@ -79,14 +84,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column :label="$t('citeList.publicationTime')" width="60" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<p>{{ scope.row.vol }}</p>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column :label="$t('citeList.is_wos')" width="80" align="center">
|
<el-table-column :label="$t('citeList.is_wos')" width="80" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<p v-if="scope.row.is_wos == 1">{{ $t('citeList.yes') }}</p>
|
<p v-if="scope.row.is_wos == 1">{{ $t('citeList.yes') }}</p>
|
||||||
<p v-if="scope.row.is_wos == 0">{{ $t('citeList.no') }}</p>
|
<p v-if="scope.row.is_wos == 0">{{ $t('citeList.no') }}</p>
|
||||||
|
|
||||||
<!-- <b class="el-icon-check" style="color: #0fa31d; font-weight: bold" v-if="scope.row.is_wos == 1"> </b>
|
|
||||||
<b class="el-icon-close" style="color: #ff0000; font-weight: bold" v-if="scope.row.is_wos == 0"> </b>
|
|
||||||
-->
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column :label="$t('citeList.date')" width="90" align="center">
|
<!-- <el-table-column :label="$t('citeList.date')" width="90" align="center">
|
||||||
@@ -190,9 +196,28 @@
|
|||||||
v-model="refenceForm.journal_name"
|
v-model="refenceForm.journal_name"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item :label="`${$t('citeList.author')}:`" required prop="author">
|
||||||
|
<p v-if="this.doi_num == 1 && doiForm.author && doiForm.author != ''">{{ refenceForm.author }}</p>
|
||||||
|
<data v-else>
|
||||||
|
<el-input
|
||||||
|
v-model="refenceForm.author"
|
||||||
|
placeholder="Patel NM, Stottlemyer BA, Gray MP, Boyce RD, Kane Gill SL"
|
||||||
|
></el-input>
|
||||||
|
<p class="zhushi">
|
||||||
|
{{ $t('citeList.authorInfo') }}
|
||||||
|
</p></data
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item :label="`${$t('citeList.publicationTime')}:`" required prop="vol">
|
||||||
|
<p v-if="this.doi_num == 1 && doiForm.vol && doiForm.vol != ''">{{ refenceForm.vol }}</p>
|
||||||
|
|
||||||
|
<el-input v-else v-model="refenceForm.vol" placeholder=""></el-input>
|
||||||
|
<!-- <el-input v-model="refenceForm.vol" placeholder="eg: 2023;8(9):49-62"></el-input> -->
|
||||||
|
<!-- <p class="zhushi">{{ $t('citeList.publicationTimeInfo') }}</p> -->
|
||||||
|
</el-form-item>
|
||||||
<el-form-item :label="$t('citeList.is_wos')" prop="is_wos">
|
<el-form-item :label="$t('citeList.is_wos')" prop="is_wos">
|
||||||
<el-select v-model="refenceForm.is_wos" @change="getJourChange" style="width: 100%" placeholder="">
|
<el-select v-model="refenceForm.is_wos" style="width: 100%" placeholder="">
|
||||||
<el-option v-for="item in is_wosList" :key="item.value" :label="item.title" :value="item.value"> </el-option>
|
<el-option v-for="item in is_wosList" :key="item.value" :label="item.title" :value="item.value"> </el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -200,7 +225,7 @@
|
|||||||
<el-input-number v-model="refenceForm.factor" :precision="2" :step="0.1" :min="0"></el-input-number>
|
<el-input-number v-model="refenceForm.factor" :precision="2" :step="0.1" :min="0"></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('citeList.is_china')" prop="is_china">
|
<el-form-item :label="$t('citeList.is_china')" prop="is_china">
|
||||||
<el-select v-model="refenceForm.is_china" @change="getJourChange" placeholder="" style="width: 100%">
|
<el-select v-model="refenceForm.is_china" placeholder="" style="width: 100%">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in is_chinaList"
|
v-for="item in is_chinaList"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
@@ -226,6 +251,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableWidth: !localStorage.getItem('langs') || localStorage.getItem('langs') == 'en' ? 100 :70,
|
||||||
queryForm: {},
|
queryForm: {},
|
||||||
is_wosList: [
|
is_wosList: [
|
||||||
{ title: this.$t('citeList.yes'), value: 1 },
|
{ title: this.$t('citeList.yes'), value: 1 },
|
||||||
@@ -287,7 +313,8 @@ export default {
|
|||||||
refenceFormrules: {
|
refenceFormrules: {
|
||||||
doi: [{ required: false, message: this.$t('citeList.rulesDoiInfo'), trigger: 'blur' }],
|
doi: [{ required: false, message: this.$t('citeList.rulesDoiInfo'), trigger: 'blur' }],
|
||||||
journal_name: [{ required: true, message: this.$t('citeList.rulesJournalInfo'), trigger: 'blur' }],
|
journal_name: [{ required: true, message: this.$t('citeList.rulesJournalInfo'), trigger: 'blur' }],
|
||||||
// author: [{ required: true, message: 'The Author(s) cannot be empty', trigger: 'blur' }],
|
author: [{ required: true, message: this.$t('citeList.rulesAuthorInfo'), trigger: 'blur' }],
|
||||||
|
vol: [{ required: true, message: this.$t('citeList.rulesVolInfo'), trigger: 'blur' }],
|
||||||
article_name: [{ required: true, message: this.$t('citeList.rulesArticleInfo'), trigger: 'blur' }]
|
article_name: [{ required: true, message: this.$t('citeList.rulesArticleInfo'), trigger: 'blur' }]
|
||||||
|
|
||||||
// isbn: [{ required: true, message: 'The ISBN cannot be empty', trigger: 'blur' }],
|
// isbn: [{ required: true, message: 'The ISBN cannot be empty', trigger: 'blur' }],
|
||||||
@@ -311,11 +338,6 @@ export default {
|
|||||||
p_article_id: {
|
p_article_id: {
|
||||||
type: null,
|
type: null,
|
||||||
required: true
|
required: true
|
||||||
},
|
|
||||||
|
|
||||||
gridData: {
|
|
||||||
type: String,
|
|
||||||
required: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -550,19 +572,21 @@ export default {
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
//this.tableData = res.data.refers
|
//this.tableData = res.data.refers
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (res.data.result) {
|
// if (res.data.result) {
|
||||||
this.doi_num = 1;
|
this.doi_num = 1;
|
||||||
var result = res.data.result;
|
var result = res.data;
|
||||||
console.log('result at line 595:', result);
|
console.log('result at line 595:', result);
|
||||||
|
this.doiForm = {
|
||||||
|
doi: this.refenceForm.doi,
|
||||||
|
|
||||||
this.doiForm = {
|
article_name: result.article_title ? result.article_title : '',
|
||||||
doi: this.refenceForm.doi,
|
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 : '',
|
this.refenceForm = { ...this.refenceForm, ...this.doiForm };
|
||||||
journal_name: result.journal_title ? result.journal_title : ''
|
// }
|
||||||
};
|
|
||||||
this.refenceForm = { ...this.refenceForm, ...this.doiForm };
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.doi_num = 2;
|
this.doi_num = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user