Commit ebe42124 authored by 涂伟's avatar 涂伟

fix: '运维API调用数据展示优化'

parent c07d4498
...@@ -101,8 +101,9 @@ const HomePage = () => { ...@@ -101,8 +101,9 @@ const HomePage = () => {
moment().startOf('month'), moment().startOf('month'),
moment(new Date(), 'YYYY-MM-DD HH:mm:ss'), moment(new Date(), 'YYYY-MM-DD HH:mm:ss'),
]); ]);
const [activeKey, setActiveKey] = useState('1'); const [activeKey, setActiveKey] = useState('2');
const [title, setTitle] = useState('最近10条异常API'); // const [title, setTitle] = useState('最近10条异常API');
const [title, setTitle] = useState('耗时排名前10的API');
useEffect(() => { useEffect(() => {
setLoading(true); setLoading(true);
...@@ -1226,32 +1227,32 @@ const HomePage = () => { ...@@ -1226,32 +1227,32 @@ const HomePage = () => {
tabPosition="left" tabPosition="left"
style={{ height: '100%' }} style={{ height: '100%' }}
> >
<TabPane tab="异常API" key="1"> <TabPane tab="耗时API" key="2">
<Table <Table
size="small" size="small"
bordered bordered
columns={columns} columns={columns1}
dataSource={keepTableList} dataSource={keepTableList1}
scroll={{ y: 'calc(100% - 53px)' }} scroll={{ y: 'calc(100% - 53px)' }}
pagination={false} pagination={false}
/> />
</TabPane> </TabPane>
<TabPane tab="耗时API" key="2"> <TabPane tab="调用频次" key="3">
<Table <Table
size="small" size="small"
bordered bordered
columns={columns1} columns={columns2}
dataSource={keepTableList1} dataSource={tableData1}
scroll={{ y: 'calc(100% - 53px)' }} scroll={{ y: 'calc(100% - 53px)' }}
pagination={false} pagination={false}
/> />
</TabPane> </TabPane>
<TabPane tab="调用频次" key="3"> <TabPane tab="异常API" key="1">
<Table <Table
size="small" size="small"
bordered bordered
columns={columns2} columns={columns}
dataSource={tableData1} dataSource={keepTableList}
scroll={{ y: 'calc(100% - 53px)' }} scroll={{ y: 'calc(100% - 53px)' }}
pagination={false} pagination={false}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment