This commit is contained in:
shijingjing
2022-10-26 17:25:10 +08:00
parent eeea69196f
commit 2ddf94eb75
2 changed files with 14 additions and 12 deletions

View File

@@ -68,12 +68,10 @@
getList() {
if (this.pageNum > this.pages) return
this.$instance.post(`/app/appgeneralelectioninfo/list-xcx?partyId=${this.partyId}&current=${this.pageNum}&size=${this.pageSize}`, null, {}).then(res => {
console.log(res)
if (res.code == 0) {
const list = this.pageNum > 1 ? [...this.list, ...res.data.records] : res.data.records
this.pages = Math.ceil(res.data.total / 10)
this.list = list
console.log(this.list)
}
})
},