|
|
@ -43,6 +43,10 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-collapse> |
|
|
|
</el-collapse> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<el-pagination |
|
|
|
|
|
|
|
layout="prev, pager, next" |
|
|
|
|
|
|
|
:total="total" class="center mt1" @current-change="query"> |
|
|
|
|
|
|
|
</el-pagination> |
|
|
|
<el-row class="mt3"> |
|
|
|
<el-row class="mt3"> |
|
|
|
<el-col :span="18"> |
|
|
|
<el-col :span="18"> |
|
|
|
<template v-if="docList.length===0"> |
|
|
|
<template v-if="docList.length===0"> |
|
|
@ -60,7 +64,7 @@ |
|
|
|
<el-col :span="16" class="doc-title"><span>{{item.title}}</span></el-col> |
|
|
|
<el-col :span="16" class="doc-title"><span>{{item.title}}</span></el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row type="flex" align="middle" class="center mt1"> |
|
|
|
<el-row type="flex" align="middle" class="center mt1"> |
|
|
|
<el-col :span="2"><span>[{{item.type}}]</span></el-col> |
|
|
|
<el-col :span="2"><span>{{item.type}}</span></el-col> |
|
|
|
<el-col :span="1"><span>{{item.author}}</span></el-col> |
|
|
|
<el-col :span="1"><span>{{item.author}}</span></el-col> |
|
|
|
<el-col :span="3"><span>{{item.profession}}</span></el-col> |
|
|
|
<el-col :span="3"><span>{{item.profession}}</span></el-col> |
|
|
|
<el-col :span="3"><span>{{item.school}} {{item.year}}</span></el-col> |
|
|
|
<el-col :span="3"><span>{{item.school}} {{item.year}}</span></el-col> |
|
|
@ -128,14 +132,15 @@ |
|
|
|
activeNames: [], |
|
|
|
activeNames: [], |
|
|
|
docList: [], |
|
|
|
docList: [], |
|
|
|
recommend_list: [], |
|
|
|
recommend_list: [], |
|
|
|
total:1 |
|
|
|
total:0, |
|
|
|
|
|
|
|
currentPage:1 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
read(item){ |
|
|
|
read(item){ |
|
|
|
this.$read(item) |
|
|
|
this.$read(item) |
|
|
|
}, |
|
|
|
}, |
|
|
|
query(){ |
|
|
|
query(page=1){ |
|
|
|
let that=this |
|
|
|
let that=this |
|
|
|
let loadingInstance =Loading.service({}); |
|
|
|
let loadingInstance =Loading.service({}); |
|
|
|
this.GLOBAL.fetchGet('/v1/api/paper/list', { |
|
|
|
this.GLOBAL.fetchGet('/v1/api/paper/list', { |
|
|
@ -144,11 +149,14 @@ |
|
|
|
tag: this.form.tag, |
|
|
|
tag: this.form.tag, |
|
|
|
profession: this.form.profession, |
|
|
|
profession: this.form.profession, |
|
|
|
startYear: this.form.start_year, |
|
|
|
startYear: this.form.start_year, |
|
|
|
endYear: this.form.end_year |
|
|
|
endYear: this.form.end_year, |
|
|
|
|
|
|
|
page:page |
|
|
|
}, function(res) { |
|
|
|
}, function(res) { |
|
|
|
if(res.code==='200'){ |
|
|
|
if(res.code==='200'){ |
|
|
|
that.docList=res.data.data |
|
|
|
that.docList=res.data.content |
|
|
|
that.total=res.data.total |
|
|
|
that.total=res.data.totalElements |
|
|
|
|
|
|
|
that.currentPage=page |
|
|
|
|
|
|
|
// console.info(that.total) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
that.$message.error(that.$t('error_500').toString()) |
|
|
|
that.$message.error(that.$t('error_500').toString()) |
|
|
|
} |
|
|
|
} |
|
|
@ -158,7 +166,11 @@ |
|
|
|
recommend(){ |
|
|
|
recommend(){ |
|
|
|
let that=this |
|
|
|
let that=this |
|
|
|
this.GLOBAL.fetchGet('/v1/api/paper/recommend',{},function(res) { |
|
|
|
this.GLOBAL.fetchGet('/v1/api/paper/recommend',{},function(res) { |
|
|
|
|
|
|
|
if(res.data) { |
|
|
|
that.recommend_list = res.data |
|
|
|
that.recommend_list = res.data |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
console.warn(res.msg) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -183,7 +195,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.recommend-list { |
|
|
|
.recommend-list { |
|
|
|
overflow-y: scroll; |
|
|
|
height: 800px; |
|
|
|
|
|
|
|
overflow-y: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
a{ |
|
|
|
a{ |
|
|
|