Merge branch 'xie-accept'

This commit is contained in:
wangjinlei
2023-07-10 15:10:22 +08:00
2 changed files with 28 additions and 28 deletions

View File

@@ -337,7 +337,7 @@
}, },
refenceFormrules:{ refenceFormrules:{
// doi:[ // doi:[
// { required: true, message: 'The Doi cannot be empty', trigger: 'blur' }, // { required: false, message: 'The Doi cannot be empty', trigger: 'blur' },
// ], // ],
joura:[ joura:[
{ required: true, message: 'The Journal cannot be empty', trigger: 'blur' }, { required: true, message: 'The Journal cannot be empty', trigger: 'blur' },
@@ -398,8 +398,8 @@
methods:{ methods:{
// 格式化 // 格式化
gotoFormate(){ gotoFormate(){
this.$refs['refenceForm'].validateField('doi', (callback)=>{ // this.$refs['refenceForm'].validateField('doi', (callback)=>{
if(callback == ''){ if(this.refenceForm.doi != ''){
this.holeLoading = true this.holeLoading = true
this.$api this.$api
.post('/api/Preaccept/searchDoi',{'doi': this.refenceForm.doi}) .post('/api/Preaccept/searchDoi',{'doi': this.refenceForm.doi})
@@ -425,7 +425,7 @@
}else{ }else{
this.$message.error('The Doi cannot be empty!') this.$message.error('The Doi cannot be empty!')
} }
}) // })
}, },
// 全页面加载动画 // 全页面加载动画
openFullScreen1() { openFullScreen1() {
@@ -532,15 +532,15 @@
var otherValid = false var otherValid = false
if(this.SourceType == 'journal') { if(this.SourceType == 'journal') {
// Journal形式 // Journal形式
var doi = '' // var doi = ''
var author = '' var author = ''
var title = '' var title = ''
var dateno = '' var dateno = ''
var joura = '' var joura = ''
var doilink = '' var doilink = ''
this.$refs['refenceForm'].validateField('doi',(callback)=>{ // this.$refs['refenceForm'].validateField('doi',(callback)=>{
doi = callback // doi = callback
}) // })
this.$refs['refenceForm'].validateField('author',(callback)=>{ this.$refs['refenceForm'].validateField('author',(callback)=>{
author = callback author = callback
}) })
@@ -556,7 +556,7 @@
this.$refs['refenceForm'].validateField('doilink',(callback)=>{ this.$refs['refenceForm'].validateField('doilink',(callback)=>{
doilink = callback doilink = callback
}) })
doi == '' && author == '' && title == '' && dateno == '' && joura == '' && doilink == '' ? journalValid = true :'' author == '' && title == '' && dateno == '' && joura == '' && doilink == '' ? journalValid = true :''
}else if(this.SourceType == 'book'){ }else if(this.SourceType == 'book'){
// book 形式 // book 形式
var author = '' var author = ''
@@ -625,15 +625,15 @@
var otherValid = false var otherValid = false
if(this.SourceType == 'journal') { if(this.SourceType == 'journal') {
// Journal形式 // Journal形式
var doi = '' // var doi = ''
var author = '' var author = ''
var title = '' var title = ''
var dateno = '' var dateno = ''
var joura = '' var joura = ''
var doilink = '' var doilink = ''
this.$refs['refenceForm'].validateField('doi',(callback)=>{ // this.$refs['refenceForm'].validateField('doi',(callback)=>{
doi = callback // doi = callback
}) // })
this.$refs['refenceForm'].validateField('author',(callback)=>{ this.$refs['refenceForm'].validateField('author',(callback)=>{
author = callback author = callback
}) })
@@ -649,7 +649,7 @@
this.$refs['refenceForm'].validateField('doilink',(callback)=>{ this.$refs['refenceForm'].validateField('doilink',(callback)=>{
doilink = callback doilink = callback
}) })
doi == '' && author == '' && title == '' && dateno == '' && joura == '' && doilink == '' ? journalValid = true :'' author == '' && title == '' && dateno == '' && joura == '' && doilink == '' ? journalValid = true :''
}else if(this.SourceType == 'book'){ }else if(this.SourceType == 'book'){
// book 形式 // book 形式
var author = '' var author = ''

View File

@@ -312,7 +312,7 @@ export default {
}, },
refenceFormrules:{ refenceFormrules:{
// doi:[ // doi:[
// { required: true, message: 'The Doi cannot be empty', trigger: 'blur' }, // { required: false, message: 'The Doi cannot be empty', trigger: 'blur' },
// ], // ],
joura:[ joura:[
{ required: true, message: 'The Journal cannot be empty', trigger: 'blur' }, { required: true, message: 'The Journal cannot be empty', trigger: 'blur' },
@@ -522,15 +522,15 @@ export default {
var otherValid = false var otherValid = false
if(this.SourceType == 'journal') { if(this.SourceType == 'journal') {
// Journal形式 // Journal形式
var doi = '' // var doi = ''
var author = '' var author = ''
var title = '' var title = ''
var dateno = '' var dateno = ''
var joura = '' var joura = ''
var doilink = '' var doilink = ''
this.$refs['refenceForm'].validateField('doi',(callback)=>{ // this.$refs['refenceForm'].validateField('doi',(callback)=>{
doi = callback // doi = callback
}) // })
this.$refs['refenceForm'].validateField('author',(callback)=>{ this.$refs['refenceForm'].validateField('author',(callback)=>{
author = callback author = callback
}) })
@@ -546,7 +546,7 @@ export default {
this.$refs['refenceForm'].validateField('doilink',(callback)=>{ this.$refs['refenceForm'].validateField('doilink',(callback)=>{
doilink = callback doilink = callback
}) })
doi == '' && author == '' && title == '' && dateno == '' && joura == '' && doilink == '' ? journalValid = true :'' author == '' && title == '' && dateno == '' && joura == '' && doilink == '' ? journalValid = true :''
}else if(this.SourceType == 'book'){ }else if(this.SourceType == 'book'){
// book 形式 // book 形式
var author = '' var author = ''
@@ -614,15 +614,15 @@ export default {
var otherValid = false var otherValid = false
if(this.SourceType == 'journal') { if(this.SourceType == 'journal') {
// Journal形式 // Journal形式
var doi = '' // var doi = ''
var author = '' var author = ''
var title = '' var title = ''
var dateno = '' var dateno = ''
var joura = '' var joura = ''
var doilink = '' var doilink = ''
this.$refs['refenceForm'].validateField('doi',(callback)=>{ // this.$refs['refenceForm'].validateField('doi',(callback)=>{
doi = callback // doi = callback
}) // })
this.$refs['refenceForm'].validateField('author',(callback)=>{ this.$refs['refenceForm'].validateField('author',(callback)=>{
author = callback author = callback
}) })
@@ -638,7 +638,7 @@ export default {
this.$refs['refenceForm'].validateField('doilink',(callback)=>{ this.$refs['refenceForm'].validateField('doilink',(callback)=>{
doilink = callback doilink = callback
}) })
doi == '' && author == '' && title == '' && dateno == '' && joura == '' && doilink == '' ? journalValid = true :'' author == '' && title == '' && dateno == '' && joura == '' && doilink == '' ? journalValid = true :''
}else if(this.SourceType == 'book'){ }else if(this.SourceType == 'book'){
// book 形式 // book 形式
var author = '' var author = ''
@@ -712,8 +712,8 @@ export default {
}, },
// 格式化 // 格式化
gotoFormate(){ gotoFormate(){
this.$refs['refenceForm'].validateField('doi', (callback)=>{ // this.$refs['refenceForm'].validateField('doi', (callback)=>{
if(callback == ''){ if(this.refenceForm.doi != ''){
this.addLoading = true this.addLoading = true
this.$api this.$api
.post('/api/Preaccept/searchDoi',{'doi': this.refenceForm.doi}) .post('/api/Preaccept/searchDoi',{'doi': this.refenceForm.doi})
@@ -741,7 +741,7 @@ export default {
// console.log('不合格') // console.log('不合格')
this.$message.error('The Doi cannot be empty!') this.$message.error('The Doi cannot be empty!')
} }
}) // })
}, },
// 添加一行 // 添加一行
addLine(row, optitle){ addLine(row, optitle){