Commit de85f609 authored by 皮倩雯's avatar 皮倩雯

fix: '首页优化'

parent 014f9403
Pipeline #84948 passed with stages
......@@ -119,6 +119,7 @@ const HomePage = () => {
getGateWay();
getMapScheme();
getLogMessage();
getLogMessageTime();
onGetProduct();
getLimits();
getMapLayer();
......@@ -365,6 +366,31 @@ const HomePage = () => {
});
};
// 获取耗时表格数据
const getLogMessageTime = () => {
setLoadingApi(true);
GetWayPages({
pageIndex: 1,
pageSize: 10,
dateFrom: allTime[0].format('YYYY-MM-DD HH:mm:ss'),
dateTo: allTime[1].format('YYYY-MM-DD HH:mm:ss'),
info: '',
state: null,
}).then(res => {
setLoadingApi(false);
if (res.code === 0) {
setKeepTableList1(res.data.consumData);
} else {
setKeepTableList1([]);
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
}
});
};
// 切换解决方案
const changeProject = () => {
history.push(`/solution`);
......
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