Commit ebe42124 authored by 涂伟's avatar 涂伟

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

parent c07d4498
......@@ -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={columns1}
dataSource={keepTableList1}
scroll={{ y: 'calc(100% - 53px)' }}
pagination={false}
/>
</TabPane>
<TabPane tab="耗时API" key="2">
<TabPane tab="调用频次" key="3">
<Table
size="small"
bordered
columns={columns1}
dataSource={keepTableList1}
columns={columns2}
dataSource={tableData1}
scroll={{ y: 'calc(100% - 53px)' }}
pagination={false}
/>
</TabPane>
<TabPane tab="调用频次" key="3">
<TabPane tab="异常API" key="1">
<Table
size="small"
bordered
columns={columns2}
dataSource={tableData1}
columns={columns}
dataSource={keepTableList}
scroll={{ y: 'calc(100% - 53px)' }}
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