This commit is contained in:
aihe 2024-04-25 17:57:00 +08:00
parent b2bbaab61c
commit 4783cc3e6c
2 changed files with 4 additions and 2 deletions

View File

@ -45,6 +45,7 @@
},
data() {
return {
reqLoading: false,
page: { // 分页参数
pageNum: 1,
pageSize: 20,
@ -77,10 +78,12 @@
this.page.pageNum = 1
this.showLoading()
}
this.reqLoading = true
const res = await this.getListFun({
...this.page,
...this.searchParam
})
this.reqLoading = false
let list = res.rows || []
if (reload) {
this.hideLoading()
@ -99,6 +102,7 @@
page: this.page,
showLoadMore: this.showLoadMore,
loadedAll: this.loadedAll,
reqLoading: this.reqLoading
...obj,
})
}

View File

@ -147,12 +147,10 @@
this.goBack()
break
;
}
},
handleEditItem(item={}) {
this.goto(`address/edit?id=${item.id}`)
},
async handleDelItem(item) {
await this.confirmModal('确认要删除吗?')