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
ebe42124
Commit
ebe42124
authored
6 months ago
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '运维API调用数据展示优化'
parent
c07d4498
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
index.jsx
src/pages/homePage/index.jsx
+12
-11
No files found.
src/pages/homePage/index.jsx
View file @
ebe42124
...
...
@@ -101,8 +101,9 @@ const HomePage = () => {
moment
().
startOf
(
'month'
),
moment
(
new
Date
(),
'YYYY-MM-DD HH:mm:ss'
),
]);
const
[
activeKey
,
setActiveKey
]
=
useState
(
'1'
);
const
[
title
,
setTitle
]
=
useState
(
'最近10条异常API'
);
const
[
activeKey
,
setActiveKey
]
=
useState
(
'2'
);
// const [title, setTitle] = useState('最近10条异常API');
const
[
title
,
setTitle
]
=
useState
(
'耗时排名前10的API'
);
useEffect
(()
=>
{
setLoading
(
true
);
...
...
@@ -1226,32 +1227,32 @@ const HomePage = () => {
tabPosition=
"left"
style=
{
{
height
:
'100%'
}
}
>
<
TabPane
tab=
"
异常API"
key=
"1
"
>
<
TabPane
tab=
"
耗时API"
key=
"2
"
>
<
Table
size=
"small"
bordered
columns=
{
columns
}
dataSource=
{
keepTableList
}
columns=
{
columns
1
}
dataSource=
{
keepTableList
1
}
scroll=
{
{
y
:
'calc(100% - 53px)'
}
}
pagination=
{
false
}
/>
</
TabPane
>
<
TabPane
tab=
"
耗时API"
key=
"2
"
>
<
TabPane
tab=
"
调用频次"
key=
"3
"
>
<
Table
size=
"small"
bordered
columns=
{
columns
1
}
dataSource=
{
keepTableList
1
}
columns=
{
columns
2
}
dataSource=
{
tableData
1
}
scroll=
{
{
y
:
'calc(100% - 53px)'
}
}
pagination=
{
false
}
/>
</
TabPane
>
<
TabPane
tab=
"
调用频次"
key=
"3
"
>
<
TabPane
tab=
"
异常API"
key=
"1
"
>
<
Table
size=
"small"
bordered
columns=
{
columns
2
}
dataSource=
{
tableData1
}
columns=
{
columns
}
dataSource=
{
keepTableList
}
scroll=
{
{
y
:
'calc(100% - 53px)'
}
}
pagination=
{
false
}
/>
...
...
This diff is collapsed.
Click to expand it.
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