feat: 商品、订单、库存列表页增加onShow刷新数据
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -125,6 +125,11 @@ export default {
|
|||||||
this.status = null
|
this.status = null
|
||||||
this.loadOrders()
|
this.loadOrders()
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
// 每次进入页面都刷新数据
|
||||||
|
this.page = 1
|
||||||
|
this.loadOrders()
|
||||||
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.hasMore && !this.loading) {
|
if (this.hasMore && !this.loading) {
|
||||||
this.page++
|
this.page++
|
||||||
|
|||||||
@@ -84,6 +84,11 @@ export default {
|
|||||||
this.loadCategories()
|
this.loadCategories()
|
||||||
this.loadProducts()
|
this.loadProducts()
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
// 每次进入页面都刷新数据
|
||||||
|
this.page = 1
|
||||||
|
this.loadProducts()
|
||||||
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.hasMore && !this.loading) {
|
if (this.hasMore && !this.loading) {
|
||||||
this.page++
|
this.page++
|
||||||
|
|||||||
@@ -68,6 +68,11 @@ export default {
|
|||||||
onLoad() {
|
onLoad() {
|
||||||
this.getStockList()
|
this.getStockList()
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
// 每次进入页面都刷新数据
|
||||||
|
this.page = 1
|
||||||
|
this.getStockList()
|
||||||
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.getStockList().then(() => {
|
this.getStockList().then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user