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
46c2a716
Commit
46c2a716
authored
Feb 29, 2024
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '安全日志表格筛选优化'
parent
d05626f6
Pipeline
#85429
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.jsx
src/pages/log/loginLog/index.jsx
+4
-4
No files found.
src/pages/log/loginLog/index.jsx
View file @
46c2a716
...
...
@@ -65,7 +65,7 @@ const LoginLog = () => {
key
:
'Ciient'
,
width
:
300
,
filters
:
SystemTypeFilters
,
onFilter
:
(
value
,
record
)
=>
record
.
SystemType
===
value
,
onFilter
:
(
value
,
record
)
=>
record
.
Ciient
===
value
,
filteredValue
,
},
// {
...
...
@@ -102,8 +102,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
{
...
...
@@ -148,7 +148,7 @@ const LoginLog = () => {
};
const
onChangeInput
=
filters
=>
{
console
.
log
(
'filters'
,
filters
);
setFilteredValue
(
filters
.
LoginName
,
filters
.
ShowName
,
filters
.
SystemType
);
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