29232
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<span class="tips">*</span>党员信息
|
||||
</div>
|
||||
<div class="value">
|
||||
<AiPagePicker type="party" @select="handlePartySelect" single>
|
||||
<AiPagePicker type="party" @select="handlePartySelect" single :isFourParty="true">
|
||||
<AiMore v-model="form.partyName" placeholder="请选择"/>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
|
||||
@@ -57,7 +57,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post(`/app/appparty/list`, null, {
|
||||
var url = this.$route.query.isFourParty ? 'app/appparty/listByFourParty?size=999' : '/app/appparty/list'
|
||||
this.$http.post(url, null, {
|
||||
params: {
|
||||
current: this.current,
|
||||
size: 20,
|
||||
@@ -66,13 +67,21 @@ export default {
|
||||
}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
res.data.records.forEach(e => {
|
||||
e.isCheck = this.selected.includes(e.idNumber)
|
||||
})
|
||||
if (this.current > 1 && this.current > res.data.pages) {
|
||||
return
|
||||
}
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
if(this.$route.query.isFourParty) {
|
||||
res.data.forEach(e => {
|
||||
e.isCheck = this.selected.includes(e.idNumber)
|
||||
})
|
||||
this.list = res.data
|
||||
}else {
|
||||
res.data.records.forEach(e => {
|
||||
e.isCheck = this.selected.includes(e.idNumber)
|
||||
})
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user