uu
This commit is contained in:
parent
b2bbaab61c
commit
4783cc3e6c
@ -45,6 +45,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
reqLoading: false,
|
||||||
page: { // 分页参数
|
page: { // 分页参数
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
@ -77,10 +78,12 @@
|
|||||||
this.page.pageNum = 1
|
this.page.pageNum = 1
|
||||||
this.showLoading()
|
this.showLoading()
|
||||||
}
|
}
|
||||||
|
this.reqLoading = true
|
||||||
const res = await this.getListFun({
|
const res = await this.getListFun({
|
||||||
...this.page,
|
...this.page,
|
||||||
...this.searchParam
|
...this.searchParam
|
||||||
})
|
})
|
||||||
|
this.reqLoading = false
|
||||||
let list = res.rows || []
|
let list = res.rows || []
|
||||||
if (reload) {
|
if (reload) {
|
||||||
this.hideLoading()
|
this.hideLoading()
|
||||||
@ -99,6 +102,7 @@
|
|||||||
page: this.page,
|
page: this.page,
|
||||||
showLoadMore: this.showLoadMore,
|
showLoadMore: this.showLoadMore,
|
||||||
loadedAll: this.loadedAll,
|
loadedAll: this.loadedAll,
|
||||||
|
reqLoading: this.reqLoading
|
||||||
...obj,
|
...obj,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,12 +147,10 @@
|
|||||||
this.goBack()
|
this.goBack()
|
||||||
break
|
break
|
||||||
;
|
;
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleEditItem(item={}) {
|
handleEditItem(item={}) {
|
||||||
this.goto(`address/edit?id=${item.id}`)
|
this.goto(`address/edit?id=${item.id}`)
|
||||||
|
|
||||||
},
|
},
|
||||||
async handleDelItem(item) {
|
async handleDelItem(item) {
|
||||||
await this.confirmModal('确认要删除吗?')
|
await this.confirmModal('确认要删除吗?')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user