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