|
|
@@ -3,6 +3,7 @@ import { getServiceVersionLogReq } from '@/services/modelDeployment'; |
|
|
import { to } from '@/utils/promise'; |
|
|
import { to } from '@/utils/promise'; |
|
|
import { DoubleRightOutlined } from '@ant-design/icons'; |
|
|
import { DoubleRightOutlined } from '@ant-design/icons'; |
|
|
import { Button, DatePicker, type TimeRangePickerProps } from 'antd'; |
|
|
import { Button, DatePicker, type TimeRangePickerProps } from 'antd'; |
|
|
|
|
|
import classNames from 'classnames'; |
|
|
import dayjs from 'dayjs'; |
|
|
import dayjs from 'dayjs'; |
|
|
import { useEffect, useState } from 'react'; |
|
|
import { useEffect, useState } from 'react'; |
|
|
import styles from './index.less'; |
|
|
import styles from './index.less'; |
|
|
@@ -106,6 +107,8 @@ function ServerLog({ info }: ServerLogProps) { |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const logContent = logData.map((v) => v.log_content).join(''); |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div className={styles['server-log']}> |
|
|
<div className={styles['server-log']}> |
|
|
<div> |
|
|
<div> |
|
|
@@ -122,9 +125,9 @@ function ServerLog({ info }: ServerLogProps) { |
|
|
查询 |
|
|
查询 |
|
|
</Button> |
|
|
</Button> |
|
|
</div> |
|
|
</div> |
|
|
{logData.length > 0 && ( |
|
|
|
|
|
|
|
|
{logContent ? ( |
|
|
<div className={styles['server-log__data']} id="server-log"> |
|
|
<div className={styles['server-log__data']} id="server-log"> |
|
|
<div>{logData.map((v) => v.log_content).join('') || '暂无日志'}</div> |
|
|
|
|
|
|
|
|
<div>{logContent}</div> |
|
|
{hasMore && ( |
|
|
{hasMore && ( |
|
|
<Button |
|
|
<Button |
|
|
type="text" |
|
|
type="text" |
|
|
@@ -137,6 +140,10 @@ function ServerLog({ info }: ServerLogProps) { |
|
|
</Button> |
|
|
</Button> |
|
|
)} |
|
|
)} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
) : ( |
|
|
|
|
|
<div className={classNames(styles['server-log__data'], styles['server-log__data--empty'])}> |
|
|
|
|
|
暂无日志 |
|
|
|
|
|
</div> |
|
|
)} |
|
|
)} |
|
|
</div> |
|
|
</div> |
|
|
); |
|
|
); |
|
|
|