[update] 选择用户组件搜索之后下拉不刷新
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
<van-search
|
<van-search
|
||||||
v-model="filters.realname"
|
v-model="filters.realname"
|
||||||
show-action
|
show-action
|
||||||
:clearable="true"
|
|
||||||
input-align="center"
|
input-align="center"
|
||||||
label="姓名"
|
label="姓名"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
@@ -249,6 +248,7 @@ export default {
|
|||||||
this.hide()
|
this.hide()
|
||||||
},
|
},
|
||||||
onSearch () {
|
onSearch () {
|
||||||
|
this.ipagination.pageNo = 1
|
||||||
this.getListData()
|
this.getListData()
|
||||||
},
|
},
|
||||||
handleLeft () {
|
handleLeft () {
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ const ListMixin = {
|
|||||||
this.listCount = res.result.total
|
this.listCount = res.result.total
|
||||||
if (this.listData.length >= this.listCount || dataSource.length === 0) {
|
if (this.listData.length >= this.listCount || dataSource.length === 0) {
|
||||||
this.listFinished = true
|
this.listFinished = true
|
||||||
|
} else {
|
||||||
|
this.listFinished = false
|
||||||
}
|
}
|
||||||
callback && callback()
|
callback && callback()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user