BUG 29703
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="selectResident">
|
<div class="selectResident">
|
||||||
<AiTopFixed>
|
<AiTopFixed>
|
||||||
<u-search placeholder="搜索" v-model="name" :show-action="false" @change="getList"/>
|
<u-search placeholder="搜索" v-model="name" :show-action="false" @change="current=1,getList()"/>
|
||||||
</AiTopFixed>
|
</AiTopFixed>
|
||||||
<div class="user-list">
|
<div class="user-list">
|
||||||
<template v-if="list.length>0">
|
<template v-if="list.length>0">
|
||||||
@@ -58,18 +58,18 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList() {
|
||||||
let {current, total, name: con, $route: {query: {action}}} = this
|
let {current, total, name: con, $route: {query: {action = `/admin/user/userIntegralList`}}} = this
|
||||||
if (total == 0 || current <= total) {
|
if ((!total && current == 1) || current <= total) {
|
||||||
action = decodeURIComponent(action)
|
action = decodeURIComponent(action)
|
||||||
this.$http.post(action || `/admin/user/userIntegralList`, null, {
|
this.$http.post(action, null, {
|
||||||
params: {current, size: 20, con}
|
params: {current, size: 20, con}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.total = res.data.total || 0
|
this.total = res.data.pages || 0
|
||||||
res.data.records.forEach(e => {
|
res.data.records.forEach(e => {
|
||||||
e.isCheck = this.selected.includes(e.idNumber)
|
e.isCheck = this.selected.includes(e.idNumber)
|
||||||
})
|
})
|
||||||
this.list = [this.list, res.data.records || []].flat()
|
this.list = [current == 1 ? [] : this.list, res.data.records || []].flat()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user