英文单词错误,普法考试分页

This commit is contained in:
liuye
2023-05-19 10:37:08 +08:00
parent 3fff4143d4
commit ada042974b
21 changed files with 50 additions and 31 deletions

View File

@@ -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;