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
8155e397
Commit
8155e397
authored
Jun 21, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '日志管理优化'
parent
5d1d94c9
Pipeline
#74733
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
120 deletions
+87
-120
index.jsx
src/pages/log/logCenter/index.jsx
+69
-78
index.less
src/pages/log/logCenter/index.less
+18
-42
No files found.
src/pages/log/logCenter/index.jsx
View file @
8155e397
...
@@ -295,84 +295,75 @@ const LogCenter = () => {
...
@@ -295,84 +295,75 @@ const LogCenter = () => {
setFilteredValue
(
filters
.
code
,
filters
.
statusCode
);
setFilteredValue
(
filters
.
code
,
filters
.
statusCode
);
};
};
return
(
return
(
<
div
className=
{
styles
.
omsLog
}
>
<
div
className=
{
styles
.
centerLog
}
>
<
Row
className=
{
styles
.
head
}
>
<
div
className=
{
styles
.
head
}
>
<
Col
span=
{
24
}
>
<
span
style=
{
{
lineHeight
:
2
,
marginLeft
:
'7px'
}
}
>
时间:
</
span
>
<
span
style=
{
{
lineHeight
:
2
,
marginLeft
:
'7px'
}
}
>
时间:
</
span
>
<
RangePicker
<
RangePicker
locale=
{
locale
}
locale=
{
locale
}
showTime
showTime
format=
"YYYY-MM-DD HH:mm:ss"
format=
"YYYY-MM-DD HH:mm:ss"
onChange=
{
changeTime
}
onChange=
{
changeTime
}
value=
{
allTime
}
value=
{
allTime
}
allowClear=
{
false
}
allowClear=
{
false
}
/>
/>
<
span
style=
{
{
marginLeft
:
'20px'
}
}
>
接口名称:
</
span
>
{
/* <Button onClick={() => setTime(1)} style={{ marginLeft: '20px' }}>
<
Input
近1小时
style=
{
{
width
:
'200px'
}
}
</Button>
placeholder=
"请输入接口名称"
<Button onClick={() => setTime(24)}>近1天</Button>
onChange=
{
e
=>
{
<Button onClick={() => setTime(24 * 7)}>近1周</Button>
setRequestUrl
(
e
.
target
.
value
);
<Button onClick={() => setTime(14 * 24)}>近2周</Button>
}
}
<Button onClick={() => setTime(30 * 24)}>近1月</Button> */
}
value=
{
requestUrl
}
<
span
style=
{
{
marginLeft
:
'20px'
}
}
>
接口名称:
</
span
>
allowClear
<
Input
/>
style=
{
{
width
:
'200px'
}
}
<
span
style=
{
{
marginLeft
:
'20px'
}
}
>
接口标签:
</
span
>
placeholder=
"请输入接口名称"
<
Input
onChange=
{
e
=>
{
style=
{
{
width
:
'200px'
}
}
setRequestUrl
(
e
.
target
.
value
);
placeholder=
"请输入接口标签"
}
}
onChange=
{
e
=>
{
value=
{
requestUrl
}
setLabel
(
e
.
target
.
value
);
allowClear
}
}
/>
value=
{
label
}
<
span
style=
{
{
marginLeft
:
'20px'
}
}
>
接口标签:
</
span
>
allowClear
<
Input
/>
style=
{
{
width
:
'200px'
}
}
<
Button
placeholder=
"请输入接口标签"
type=
"primary"
onChange=
{
e
=>
{
style=
{
{
marginLeft
:
'10px'
}
}
setLabel
(
e
.
target
.
value
);
onClick=
{
()
=>
{
}
}
setPageSize
(
20
);
value=
{
label
}
setCurrentPage
(
1
);
allowClear
getTableList
(
1
,
20
);
/>
setShowSearchStyle
(
true
);
<
Button
}
}
type=
"primary"
>
style=
{
{
marginLeft
:
'10px'
}
}
查询
onClick=
{
()
=>
{
</
Button
>
setPageSize
(
20
);
<
Button
setCurrentPage
(
1
);
icon=
{
<
SyncOutlined
className=
{
styles
.
icon
}
/>
}
getTableList
(
1
,
20
);
onClick=
{
handleReset
}
setShowSearchStyle
(
true
);
style=
{
{
}
}
marginLeft
:
'25px'
,
>
verticalAlign
:
'middle'
,
查询
marginTop
:
'-3px'
,
</
Button
>
}
}
<
Button
>
icon=
{
<
SyncOutlined
className=
{
styles
.
icon
}
/>
}
重置
onClick=
{
handleReset
}
</
Button
>
style=
{
{
</
div
>
marginLeft
:
'25px'
,
<
div
className=
{
styles
.
table
}
>
verticalAlign
:
'middle'
,
<
Table
marginTop
:
'-3px'
,
size=
"small"
}
}
bordered
>
columns=
{
columns
}
重置
dataSource=
{
keepTableList
}
</
Button
>
scroll=
{
{
x
:
'max-content'
,
y
:
'calc(100vh - 225px)'
}
}
</
Col
>
pagination=
{
false
}
</
Row
>
onChange=
{
onChangeInput
}
<
Spin
spinning=
{
loading
}
tip=
"loading"
>
loading=
{
loading
}
<
div
className=
{
styles
.
table
}
>
/>
<
Table
</
div
>
size=
"small"
<
div
className=
{
styles
.
footer
}
>
bordered
columns=
{
columns
}
dataSource=
{
keepTableList
}
scroll=
{
{
x
:
'max-content'
,
y
:
'calc(100vh - 225px)'
}
}
pagination=
{
false
}
onChange=
{
onChangeInput
}
/>
</
div
>
<
Pagination
<
Pagination
style=
{
{
display
:
'flex'
,
justifyContent
:
'end'
,
padding
:
'10px'
}
}
total=
{
total
}
total=
{
total
}
showTotal=
{
(
aa
,
range
)
=>
`第${range[0]}-${range[1]} 条/共 ${total} 条`
}
showTotal=
{
(
aa
,
range
)
=>
`第${range[0]}-${range[1]} 条/共 ${total} 条`
}
pageSizeOptions=
{
[
10
,
20
,
40
,
100
]
}
pageSizeOptions=
{
[
10
,
20
,
40
,
100
]
}
...
@@ -382,7 +373,7 @@ const LogCenter = () => {
...
@@ -382,7 +373,7 @@ const LogCenter = () => {
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
showSizeChanger
showSizeChanger
/>
/>
</
Spin
>
</
div
>
<
Modal
<
Modal
title=
"详细信息"
title=
"详细信息"
visible=
{
modalVisible
}
visible=
{
modalVisible
}
...
...
src/pages/log/logCenter/index.less
View file @
8155e397
.omsLog {
.centerLog {
width: 100%;
height: 100%;
.head {
.head {
padding: 10px;
padding: 10px;
background: white;
background: white;
margin-bottom: 2px;
margin-bottom: 2px;
min-width: 1030px;
width: 100%;
}
height: 52px;
.chart {
padding: 16px;
background: white;
}
}
.table {
.table {
border-top: 1px solid #f0eded;
height: calc(100% - 95px);
// overflow: auto;//不要这个,pagination否则无法固定底部
width: 100%;
.ant-table-thead tr th {
background-color: white;
font-weight: 600;
padding: 10px;
color: rgba(0, 0, 0, 0.85);
overflow: hidden;
background-color: #f6f9fe;
margin-bottom: 3px;
}
.ant-table-body {
height: calc(100vh - 208px);
border-right: white;
overflow: auto !important;
// .ant-table-tbody{
// overflow: scroll !important;
// }
}
.ant-table-cell {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ant-pagination {
z-index: 999;
border-top: 1px solid #f0eded;
}
.ant-table.ant-table-small {
width: 99%;
margin: 10px auto;
}
.ant-table-pagination {
padding-right: 12px;
background: white;
margin: 1px 0;
padding: 8px;
padding-right: 20px;
}
}
}
.ant-spin-container {
.footer{
width: 100%;
height: 42px;
background-color: white;
background-color: white;
display: flex;
justify-content: flex-end;
padding: 10px;
}
}
.icon {
.icon {
margin-top: -5px !important;
margin-top: -5px !important;
vertical-align: text-bottom;
vertical-align: text-bottom;
...
...
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