commit
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<van-pull-refresh v-model="tableRefreshing" @refresh="doSearch">
|
||||
<van-pull-refresh v-model="tableRefreshing" @refresh="onRefresh">
|
||||
<div v-if="tableData.length === 0" class="empty-state">
|
||||
<van-empty description="暂无数据"></van-empty>
|
||||
</div>
|
||||
@@ -91,7 +91,12 @@ module.exports = {
|
||||
this.tableFinished = false;
|
||||
this.tableData = [];
|
||||
this.pageData();
|
||||
}
|
||||
},
|
||||
onRefresh() {
|
||||
this.localPageForm.pageNumber = 1
|
||||
this.$emit('update:page_form', {...this.localPageForm});
|
||||
this.doSearch()
|
||||
},
|
||||
},
|
||||
created() {
|
||||
// this.pageData();
|
||||
|
||||
Reference in New Issue
Block a user