Commit 46c2a716 authored by 涂伟's avatar 涂伟

fix: '安全日志表格筛选优化'

parent d05626f6
Pipeline #85429 failed with stages
...@@ -65,7 +65,7 @@ const LoginLog = () => { ...@@ -65,7 +65,7 @@ const LoginLog = () => {
key: 'Ciient', key: 'Ciient',
width: 300, width: 300,
filters: SystemTypeFilters, filters: SystemTypeFilters,
onFilter: (value, record) => record.SystemType === value, onFilter: (value, record) => record.Ciient === value,
filteredValue, filteredValue,
}, },
// { // {
...@@ -102,8 +102,8 @@ const LoginLog = () => { ...@@ -102,8 +102,8 @@ const LoginLog = () => {
let arr2 = res.data.map(item => item.ShowName); let arr2 = res.data.map(item => item.ShowName);
arr2 = arr2.filter((value, index) => arr2.indexOf(value) === index); arr2 = arr2.filter((value, index) => arr2.indexOf(value) === index);
setShowNameFilters(arr2.map(item => ({ text: item, value: item }))); setShowNameFilters(arr2.map(item => ({ text: item, value: item })));
// 过滤系统类型SystemType // 过滤系统类型Ciient
let arr3 = res.data.map(item => item.SystemType); let arr3 = res.data.map(item => item.Ciient);
arr3 = arr3.filter((value, index) => arr3.indexOf(value) === index); arr3 = arr3.filter((value, index) => arr3.indexOf(value) === index);
setSystemTypeFilters(arr3.map(item => ({ text: item, value: item }))); setSystemTypeFilters(arr3.map(item => ({ text: item, value: item })));
} else { } else {
...@@ -148,7 +148,7 @@ const LoginLog = () => { ...@@ -148,7 +148,7 @@ const LoginLog = () => {
}; };
const onChangeInput = filters => { const onChangeInput = filters => {
console.log('filters', filters); console.log('filters', filters);
setFilteredValue(filters.LoginName, filters.ShowName, filters.SystemType); setFilteredValue(filters.LoginName, filters.ShowName, filters.Ciient);
}; };
return ( return (
<> <>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment