bug
This commit is contained in:
@@ -72,8 +72,7 @@ export default {
|
|||||||
linksageDate: this.search.linksageDate,
|
linksageDate: this.search.linksageDate,
|
||||||
residentName : this.search.residentName
|
residentName : this.search.residentName
|
||||||
},
|
},
|
||||||
})
|
}).then((res) => {
|
||||||
.then((res) => {
|
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,11 +86,11 @@ export default {
|
|||||||
if(!this.isFlag) {
|
if(!this.isFlag) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.isFlag = false
|
||||||
this.$http.post('/app/apppartyintegralinfo/add', {
|
this.$http.post('/app/apppartyintegralinfo/add', {
|
||||||
partyIntegralList: [{...this.form}],
|
partyIntegralList: [{...this.form}],
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.isFlag = false
|
|
||||||
this.$u.toast('提交成功')
|
this.$u.toast('提交成功')
|
||||||
uni.$emit('reload')
|
uni.$emit('reload')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="selectParty">
|
<div class="selectParty">
|
||||||
<AiTopFixed>
|
<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>
|
</AiTopFixed>
|
||||||
<div class="user-list">
|
<div class="user-list">
|
||||||
<template v-if="list.length>0">
|
<template v-if="list.length>0">
|
||||||
@@ -56,12 +56,17 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getListInit() {
|
||||||
|
this.list = []
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
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, {
|
this.$http.post(url, null, {
|
||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 20,
|
size: 15,
|
||||||
areaId: this.user.areaId,
|
areaId: this.user.areaId,
|
||||||
con: this.name,
|
con: this.name,
|
||||||
name: this.name
|
name: this.name
|
||||||
@@ -75,7 +80,7 @@ export default {
|
|||||||
res.data.forEach(e => {
|
res.data.forEach(e => {
|
||||||
e.isCheck = this.selected.includes(e.idNumber)
|
e.isCheck = this.selected.includes(e.idNumber)
|
||||||
})
|
})
|
||||||
this.list = this.current > 1 ? [...this.list, ...res.data] : res.data
|
this.list = res.data
|
||||||
}else {
|
}else {
|
||||||
res.data.records.forEach(e => {
|
res.data.records.forEach(e => {
|
||||||
e.isCheck = this.selected.includes(e.idNumber)
|
e.isCheck = this.selected.includes(e.idNumber)
|
||||||
|
|||||||
Reference in New Issue
Block a user