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