BUG 29435

This commit is contained in:
aixianling
2022-04-29 20:04:03 +08:00
parent c56b6c7535
commit 403c5d34f9

View File

@@ -60,7 +60,7 @@ export default {
keyword: '',
list: [],
current: 1,
size: 10,
total: 0,
tabList: [
{
name: '已登记监测对象',
@@ -111,24 +111,22 @@ export default {
},
getList() {
if (this.list.length >= this.total && this.total > 0) return
this.$http.post('/app/appgirdmemberpoverty/listByGirdMember', null, {
params: {
current: this.current,
size: 15,
status: this.currentTabs,
// addressAreaId: this.areaId,
name: this.keyword
name: this.keyword,
},
})
.then((res) => {
if (res.code == 0) {
}).then((res) => {
if (res?.data) {
res.data.records.map((item) => {
if (item.idNumber) {
item.idNumber = item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2')
}
})
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
this.pages = res.data.pages
this.total = res.data.total
}
})
},