This commit is contained in:
liuye
2022-04-21 16:48:56 +08:00
parent 04afed2264
commit 271e40aa56
3 changed files with 11 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="selectParty">
<AiTopFixed>
<u-search placeholder="搜索" v-model="name" :show-action="false" @change="getList"></u-search>
<u-search placeholder="搜索" v-model="name" :show-action="false" @change="getListInit"></u-search>
</AiTopFixed>
<div class="user-list">
<template v-if="list.length>0">
@@ -56,12 +56,17 @@ export default {
this.getList()
},
methods: {
getListInit() {
this.list = []
this.current = 1
this.getList()
},
getList() {
var url = this.$route.query.isFourParty ? '/app/appparty/listByFourParty?size=999' : '/app/appparty/list'
var url = this.$route.query.isFourParty ? '/app/appparty/listByFourParty?size=9999' : '/app/appparty/list'
this.$http.post(url, null, {
params: {
current: this.current,
size: 20,
size: 15,
areaId: this.user.areaId,
con: this.name,
name: this.name
@@ -75,7 +80,7 @@ export default {
res.data.forEach(e => {
e.isCheck = this.selected.includes(e.idNumber)
})
this.list = this.current > 1 ? [...this.list, ...res.data] : res.data
this.list = res.data
}else {
res.data.records.forEach(e => {
e.isCheck = this.selected.includes(e.idNumber)