Commit 3e99ee63 authored by 涂伟's avatar 涂伟

fix: '登录日志筛选逻辑优化'

parent c79e9a7e
......@@ -74,7 +74,7 @@ const LoginLog = () => {
key: 'Client',
width: 300,
filters: SystemTypeFilters,
onFilter: (value, record) => record.Ciient === value,
onFilter: (value, record) => record.Client === value,
filteredValue,
},
// {
......@@ -120,8 +120,8 @@ const LoginLog = () => {
let arr2 = res.data.tableData.map(item => item.ShowName);
arr2 = arr2.filter((value, index) => arr2.indexOf(value) === index);
setShowNameFilters(arr2.map(item => ({ text: item, value: item })));
// 过滤系统类型Ciient
let arr3 = res.data.tableData.map(item => item.Ciient);
// 过滤系统类型Client
let arr3 = res.data.tableData.map(item => item.Client);
arr3 = arr3.filter((value, index) => arr3.indexOf(value) === index);
setSystemTypeFilters(arr3.map(item => ({ text: item, value: item })));
} else {
......@@ -166,7 +166,7 @@ const LoginLog = () => {
};
const onChangeInput = filters => {
// console.log('filters', filters);
setFilteredValue(filters.LoginName, filters.ShowName, filters.Ciient);
setFilteredValue(filters.LoginName, filters.ShowName, filters.Client);
};
const rightOption = useMemo(() => {
......
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