|
|
@ -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) |
|
|
|
} |
|
|
|
}) |
|
|
|