英文单词错误,普法考试分页
This commit is contained in:
@@ -84,22 +84,30 @@ export default {
|
||||
testList: [],
|
||||
testId: '',
|
||||
studyDuration: '',
|
||||
pages: 2
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
methods: {
|
||||
nextList() {
|
||||
this.current ++
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
if(this.current > this.pages) return
|
||||
this.$instance.post(`/app/appexaminationinfo/listForXCX`, null, {
|
||||
params: {
|
||||
current: this.current,
|
||||
size: 3000,
|
||||
size: 10,
|
||||
title: this.title
|
||||
}
|
||||
}).then(res=> {
|
||||
if(res?.data) {
|
||||
this.testList = res.data.records
|
||||
// this.testList = res.data.records
|
||||
this.testList = this.current==1? res.data.records: [...this.testList,...res.data.records]
|
||||
this.pages = res.data.pages
|
||||
this.getStudyDuration()
|
||||
}
|
||||
})
|
||||
@@ -186,7 +194,7 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" socped>
|
||||
<style lang="scss" scoped>
|
||||
.GeneralLawExam {
|
||||
.search_box {
|
||||
margin: 24px 0;
|
||||
|
||||
Reference in New Issue
Block a user