From 26a874047b7e084545e49636a4bc9cab226ed2d7 Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Mon, 25 Apr 2022 15:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/plugins/rent/resi.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/modules/plugins/rent/resi.vue b/src/views/modules/plugins/rent/resi.vue index 5309f0ac..e9aa50cd 100644 --- a/src/views/modules/plugins/rent/resi.vue +++ b/src/views/modules/plugins/rent/resi.vue @@ -387,16 +387,16 @@ export default { console.log('document.documentElement.clientWidth', document.documentElement.clientHeight) }, methods: { - searchFilter (label) { - const filterLabels = [ '姓名', '身份证号', '手机' ] - return filterLabels.some(item => { - return item == label + searchFilter (columnName) { + const filterName = [ 'NAME', 'MOBILE', 'ID_CARD' ] + return filterName.some(item => { + return item == columnName }) }, - tableHeaderFilter (label) { - const filterLabels = [ '姓名', '所属网格', '所属房屋', '手机', '身份证号', '性别' ] - return filterLabels.some(item => { - return item == label + tableHeaderFilter (columnName) { + const filterName = [ 'NAME', 'GRID_ID', 'HOME_ID', 'MOBILE', 'ID_CARD', 'GENDER' ] + return filterName.some(item => { + return item == columnName }) }, joinBlacklist (row) { @@ -936,7 +936,7 @@ export default { } else { this.tableHeader = [] res.data.forEach(item => { - if (this.tableHeaderFilter(item.label)) { + if (this.tableHeaderFilter(item.columnName)) { this.tableHeader.push(item) } }) @@ -1086,7 +1086,7 @@ export default { console.log('获取查询详情成功--sss', res) this.searchList = [] res.data.forEach(item => { - if (this.searchFilter(item.label)) { + if (this.searchFilter(item.columnName)) { this.searchList.push(item) } })