微调
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
<p>- If you want to discard all references and import a new batch of reference information, please click <el-button type="text" @click="removeAll">Delete and re-import</el-button>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>- Please do not forget to recheck all references in the <span class="status ok float" ><i class="el-icon-circle-check"></i></span> status.</p>
|
||||
<p>- Please do not forget to recheck all references in the <span class="status ok float" ><i class="el-icon-circle-check"></i></span> status,especially abbreviated journal title.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -161,11 +161,12 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- Journal -->
|
||||
<div v-show="SourceType == 'journal' || SourceType == 'doi'" >
|
||||
<el-form-item label="Doi:" required prop="doi" >
|
||||
<div v-show="SourceType == 'journal'" >
|
||||
<el-form-item label="Doi:" prop="doi" >
|
||||
<el-input v-model="refenceForm.doi" >
|
||||
<el-button @click="gotoFormate" slot="append" >Formate</el-button>
|
||||
</el-input>
|
||||
<p class="zhushi">You can click the 'Formate' on the right to automatically identify and quickly fill in all the current fields</p>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item >
|
||||
@@ -174,24 +175,32 @@
|
||||
<!-- 中间部分 -->
|
||||
<div v-show="SourceType !='other'">
|
||||
<el-form-item label="Author(s):" required prop="author" >
|
||||
<el-input v-model="refenceForm.author" ></el-input>
|
||||
<p class="zhushi">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”</p>
|
||||
<el-input v-model="refenceForm.author" placeholder="Patel NM, Stottlemyer BA, Gray MP, Boyce RD, Kane Gill SL"></el-input>
|
||||
<p class="zhushi">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”.</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="Title:" required prop="title" >
|
||||
<el-input v-model="refenceForm.title" placeholder="eg: Tradit Med Res"></el-input>
|
||||
<p class="zhushi">Abbreviated Journal Title</p>
|
||||
<el-form-item :label="SourceType == 'journal' ? 'Title:' : 'Book'" required prop="title" >
|
||||
<el-input v-if="SourceType == 'journal'" v-model="refenceForm.title" placeholder="eg: The role of autophagy in the treatment of osteoporosis by Chinese medicines (natural)"></el-input>
|
||||
<el-input v-if="SourceType == 'book'" v-model="refenceForm.title" placeholder="eg: Traditional Medicine Research"></el-input>
|
||||
<p v-if="SourceType == 'book'" class="zhushi">Full Name of Book.</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="Publication Details:" required prop="dateno" >
|
||||
<el-input v-model="refenceForm.dateno" placeholder="eg: 2023;8(9):49-62"></el-input>
|
||||
<p class="zhushi">Year;Volume(issue):Inclusive page numbers.</p>
|
||||
<div v-if="SourceType == 'journal'">
|
||||
<el-input v-model="refenceForm.dateno" placeholder="eg: 2023;8(9):49-62"></el-input>
|
||||
<p class="zhushi">Year;Volume(issue):Inclusive page numbers.</p>
|
||||
</div>
|
||||
<div v-if="SourceType == 'book'">
|
||||
<el-input v-model="refenceForm.dateno" placeholder="eg: New York, NY:McGraw-Hill;2011"></el-input>
|
||||
<p class="zhushi">City, State (or Country if not in the US) of publisher:Publisher’s name;copyright year.</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div v-show="SourceType == 'journal'">
|
||||
<el-form-item label="Joura:" required prop="joura" >
|
||||
<el-input v-model="refenceForm.joura" placeholder=""></el-input>
|
||||
<el-form-item label="Journal:" required prop="joura" >
|
||||
<el-input v-model="refenceForm.joura" placeholder="eg: Tradit Med Res"></el-input>
|
||||
<p class="zhushi">Abbreviated Journal Title.</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="DOI/URL:" required prop="doilink" >
|
||||
<el-input v-model="refenceForm.doilink" placeholder="eg:https://doi.org/10.1002/cncr.30667"></el-input>
|
||||
<el-input v-model="refenceForm.doilink" placeholder="eg: 10.1002/cncr.30667"></el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<!-- Book -->
|
||||
@@ -327,17 +336,17 @@
|
||||
|
||||
},
|
||||
refenceFormrules:{
|
||||
doi:[
|
||||
{ required: true, message: 'The Doi cannot be empty', trigger: 'blur' },
|
||||
],
|
||||
// doi:[
|
||||
// { required: true, message: 'The Doi cannot be empty', trigger: 'blur' },
|
||||
// ],
|
||||
joura:[
|
||||
{ required: true, message: 'The Joura cannot be empty', trigger: 'blur' },
|
||||
{ required: true, message: 'The Journal cannot be empty', trigger: 'blur' },
|
||||
],
|
||||
author:[
|
||||
{ required: true, message: 'The Author(s) cannot be empty', trigger: 'blur' },
|
||||
],
|
||||
title:[
|
||||
{ required: true, message: 'The title cannot be empty', trigger: 'blur' },
|
||||
{ required: true, message: 'Please fill in this field', trigger: 'blur' },
|
||||
],
|
||||
doilink:[
|
||||
{ required: true, message: 'The doi/url cannot be empty', trigger: 'blur' },
|
||||
@@ -391,20 +400,30 @@
|
||||
gotoFormate(){
|
||||
this.$refs['refenceForm'].validateField('doi', (callback)=>{
|
||||
if(callback == ''){
|
||||
this.holeLoading = true
|
||||
this.$api
|
||||
.post('/api/Preaccept/searchDoi',{'doi': this.refenceForm.doi})
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
this.holeLoading = false
|
||||
// console.log(res)
|
||||
if(res.code == 0 ){
|
||||
//this.tableData = res.data.refers
|
||||
|
||||
this.$nextTick(()=>{
|
||||
this.refenceForm.author = res.data.formate.author
|
||||
this.refenceForm.title = res.data.formate.title
|
||||
this.refenceForm.joura = res.data.formate.joura
|
||||
this.refenceForm.dateno = res.data.formate.dateno
|
||||
this.refenceForm.doilink = res.data.formate.doilink
|
||||
})
|
||||
}else{
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
|
||||
}
|
||||
}).catch((e)=>{
|
||||
this.$message.error(e.msg)
|
||||
this.holeLoading = false
|
||||
}).catch(()=>{})
|
||||
})
|
||||
}else{
|
||||
console.log('不合格')
|
||||
this.$message.error('The Doi cannot be empty!')
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -829,11 +848,11 @@
|
||||
changeOrder(row, opName){
|
||||
let optitle = ''
|
||||
opName == 'up' ? optitle = 'Move up this line?' : optitle = 'Move down this line?'
|
||||
this.$confirm(optitle, 'Tips', {
|
||||
confirmButtonText: 'Sure',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
// this.$confirm(optitle, 'Tips', {
|
||||
// confirmButtonText: 'Sure',
|
||||
// cancelButtonText: 'Cancel',
|
||||
// type: 'warning'
|
||||
// }).then(() => {
|
||||
this.$api
|
||||
.post('api/Preaccept/sortRefer', {
|
||||
'p_refer_id': row.p_refer_id,
|
||||
@@ -841,7 +860,7 @@
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('successed!')
|
||||
// this.$message.success('successed!')
|
||||
this.getRefData()
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
@@ -854,7 +873,7 @@
|
||||
// type: 'success',
|
||||
// message: 'remove successed!'
|
||||
// });
|
||||
}).catch(()=>{});
|
||||
// }).catch(()=>{});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user