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