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
c216bc99
Commit
c216bc99
authored
Jul 30, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录日志界面功能优化
parent
92f9f736
Pipeline
#32372
passed with stages
in 27 minutes 3 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
index.js
src/pages/log/loginLog/index.js
+10
-0
UserManage.js
src/pages/userCenter/userManage/UserManage.js
+8
-0
No files found.
src/pages/log/loginLog/index.js
View file @
c216bc99
...
...
@@ -27,6 +27,7 @@ const LoginLog = () => {
const
[
endTime
,
setEndTime
]
=
useState
(
moment
(
new
Date
(),
'YYYY-MM-DD HH:mm:ss'
),
// 默认值当前时间
);
const
[
filteredValue
,
setFilteredValue
]
=
useState
([])
const
columns
=
[
// {
...
...
@@ -46,6 +47,7 @@ const LoginLog = () => {
key
:
'LoginName'
,
filters
:
LoginNameFilters
,
onFilter
:
(
value
,
record
)
=>
record
.
LoginName
===
value
,
filteredValue
},
{
title
:
'用户名'
,
...
...
@@ -53,6 +55,7 @@ const LoginLog = () => {
key
:
'ShowName'
,
filters
:
ShowNameFilters
,
onFilter
:
(
value
,
record
)
=>
record
.
ShowName
===
value
,
filteredValue
},
{
title
:
'系统类型'
,
...
...
@@ -60,6 +63,7 @@ const LoginLog = () => {
key
:
'SystemType'
,
filters
:
SystemTypeFilters
,
onFilter
:
(
value
,
record
)
=>
record
.
SystemType
===
value
,
filteredValue
},
// {
// title: '终端',
...
...
@@ -131,6 +135,11 @@ const LoginLog = () => {
};
const
handleReset
=
()
=>
{
setStartTime
(
moment
().
startOf
(
'week'
))
setFilteredValue
([])
}
const
onChangeInput
=
(
filters
)
=>
{
console
.
log
(
'filters'
,
filters
);
setFilteredValue
(
filters
.
LoginName
,
filters
.
ShowName
,
filters
.
SystemType
)
}
return
(
<>
...
...
@@ -183,6 +192,7 @@ const LoginLog = () => {
showQuickJumper
:
true
,
showSizeChanger
:
true
,
}}
onChange
=
{
onChangeInput
}
/
>
<
/div
>
<
/Spin
>
...
...
src/pages/userCenter/userManage/UserManage.js
View file @
c216bc99
...
...
@@ -143,6 +143,7 @@ const UserManage = () => {
const
[
currentOrgArea
,
setCurrentOrgArea
]
=
useState
(
''
);
const
[
currentOrgDistinct
,
setCurrentOrgDistinct
]
=
useState
(
''
);
const
[
saveExtentFlag
,
setSaveExtentFlag
]
=
useState
(
0
);
const
[
filteredValue
,
setFilteredValue
]
=
useState
([]);
const
{
Search
}
=
Input
;
const
setRowClassName
=
record
=>
record
.
userID
===
selectColor
.
userID
?
styles
.
clickRowStyle
:
''
;
...
...
@@ -186,6 +187,7 @@ const UserManage = () => {
width
:
150
,
ellipsis
:
true
,
filters
:
orgFilters
,
filteredValue
,
onFilter
:
(
value
,
record
)
=>
record
.
OUName
===
value
,
},
{
...
...
@@ -1130,6 +1132,7 @@ const UserManage = () => {
let
res
=
newres
.
data
;
setTreeLoading
(
false
);
setSearchWord
(
''
);
setFilteredValue
([])
// 第一次加载,默认选择第一个组织
onSelect
([
res
[
0
].
id
],
false
);
}
else
{
...
...
@@ -1146,6 +1149,10 @@ const UserManage = () => {
message
.
error
(
err
);
});
};
const
onChangeInput
=
(
filters
)
=>
{
setFilteredValue
(
filters
.
OUName
);
}
// 更改机构范围
const
submitExtent
=
(
extent
,
areaName
)
=>
{
if
(
extent
)
{
...
...
@@ -1335,6 +1342,7 @@ const UserManage = () => {
showQuickJumper
:
true
,
showSizeChanger
:
true
,
}}
onChange
=
{
onChangeInput
}
/
>
<
/div
>
...
...
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