Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
b626171f
Commit
b626171f
authored
Mar 01, 2024
by
田翔
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/maintenance
parents
833a735b
a5f49882
Pipeline
#85474
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
index.jsx
src/pages/log/loginLog/index.jsx
+13
-7
No files found.
src/pages/log/loginLog/index.jsx
View file @
b626171f
...
...
@@ -51,6 +51,12 @@ const LoginLog = () => {
dataIndex
:
'IP'
,
key
:
'IP'
,
},
{
title
:
'IP属地'
,
dataIndex
:
'IPTerritory'
,
key
:
'IPTerritory'
,
width
:
250
,
},
{
title
:
'用户名'
,
dataIndex
:
'ShowName'
,
...
...
@@ -61,11 +67,11 @@ const LoginLog = () => {
},
{
title
:
'系统类型'
,
dataIndex
:
'
SystemType
'
,
key
:
'
SystemType
'
,
dataIndex
:
'
Ciient
'
,
key
:
'
Ciient
'
,
width
:
300
,
filters
:
SystemTypeFilters
,
onFilter
:
(
value
,
record
)
=>
record
.
SystemType
===
value
,
onFilter
:
(
value
,
record
)
=>
record
.
Ciient
===
value
,
filteredValue
,
},
// {
...
...
@@ -102,8 +108,8 @@ const LoginLog = () => {
let
arr2
=
res
.
data
.
map
(
item
=>
item
.
ShowName
);
arr2
=
arr2
.
filter
((
value
,
index
)
=>
arr2
.
indexOf
(
value
)
===
index
);
setShowNameFilters
(
arr2
.
map
(
item
=>
({
text
:
item
,
value
:
item
})));
// 过滤系统类型
SystemType
let
arr3
=
res
.
data
.
map
(
item
=>
item
.
SystemType
);
// 过滤系统类型
Ciient
let
arr3
=
res
.
data
.
map
(
item
=>
item
.
Ciient
);
arr3
=
arr3
.
filter
((
value
,
index
)
=>
arr3
.
indexOf
(
value
)
===
index
);
setSystemTypeFilters
(
arr3
.
map
(
item
=>
({
text
:
item
,
value
:
item
})));
}
else
{
...
...
@@ -147,8 +153,8 @@ const LoginLog = () => {
setFilteredValue
([]);
};
const
onChangeInput
=
filters
=>
{
console
.
log
(
'filters'
,
filters
);
setFilteredValue
(
filters
.
LoginName
,
filters
.
ShowName
,
filters
.
SystemType
);
//
console.log('filters', filters);
setFilteredValue
(
filters
.
LoginName
,
filters
.
ShowName
,
filters
.
Ciient
);
};
return
(
<>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment