Commit b626171f authored by 田翔's avatar 田翔
parents 833a735b a5f49882
Pipeline #85474 passed with stages
...@@ -51,6 +51,12 @@ const LoginLog = () => { ...@@ -51,6 +51,12 @@ const LoginLog = () => {
dataIndex: 'IP', dataIndex: 'IP',
key: 'IP', key: 'IP',
}, },
{
title: 'IP属地',
dataIndex: 'IPTerritory',
key: 'IPTerritory',
width: 250,
},
{ {
title: '用户名', title: '用户名',
dataIndex: 'ShowName', dataIndex: 'ShowName',
...@@ -61,11 +67,11 @@ const LoginLog = () => { ...@@ -61,11 +67,11 @@ const LoginLog = () => {
}, },
{ {
title: '系统类型', title: '系统类型',
dataIndex: 'SystemType', dataIndex: 'Ciient',
key: 'SystemType', 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 +108,8 @@ const LoginLog = () => { ...@@ -102,8 +108,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 {
...@@ -147,8 +153,8 @@ const LoginLog = () => { ...@@ -147,8 +153,8 @@ const LoginLog = () => {
setFilteredValue([]); setFilteredValue([]);
}; };
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