人员管理模糊查询
This commit is contained in:
parent
a054fb6ba4
commit
9b5a81ba11
@ -11,7 +11,7 @@
|
|||||||
<noData :custom="true"><view class="title" @tap="update()">暂无数据,点击重新加载</view></noData>
|
<noData :custom="true"><view class="title" @tap="update()">暂无数据,点击重新加载</view></noData>
|
||||||
</view>
|
</view>
|
||||||
<view class="list cu-card article dynamic" v-else-if="noData === false">
|
<view class="list cu-card article dynamic" v-else-if="noData === false">
|
||||||
<view class="cu-item one" style="padding:0" v-for="(item,index) in followList" :key="index" @tap="goToUserInfo(item)">
|
<view class="cu-item one" style="padding:0" v-for="(item,index) in peopleListQuery" :key="index" @tap="goToUserInfo(item)">
|
||||||
<view class="one-left-two">
|
<view class="one-left-two">
|
||||||
<avatar :userName="item.real_name" size="50"></avatar>
|
<avatar :userName="item.real_name" size="50"></avatar>
|
||||||
<view class="one-right">
|
<view class="one-right">
|
||||||
@ -65,6 +65,15 @@
|
|||||||
flag: true
|
flag: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
// 模糊查询
|
||||||
|
peopleListQuery(){
|
||||||
|
return this.followList.filter(people => {
|
||||||
|
return people.real_name.indexOf(this.searchStr) != -1;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
onPullDownRefresh () {
|
onPullDownRefresh () {
|
||||||
this.getFollowPeopleList();
|
this.getFollowPeopleList();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user