mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
任务详情日志添加loading
This commit is contained in:
parent
698c463c3a
commit
39fb23c025
|
@ -6,6 +6,7 @@ import {
|
|||
Loading3QuartersOutlined,
|
||||
CheckCircleOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import { PageLoading } from '@ant-design/pro-layout';
|
||||
|
||||
enum CrontabStatus {
|
||||
'running',
|
||||
|
@ -88,7 +89,7 @@ const CronLogModal = ({
|
|||
const titleElement = () => {
|
||||
return (
|
||||
<>
|
||||
{excuting && <Loading3QuartersOutlined spin />}
|
||||
{(excuting || loading) && <Loading3QuartersOutlined spin />}
|
||||
{!excuting && <CheckCircleOutlined />}
|
||||
<span style={{ marginLeft: 5 }}>日志-{cron && cron.name}</span>{' '}
|
||||
</>
|
||||
|
@ -114,6 +115,7 @@ const CronLogModal = ({
|
|||
bodyStyle={{
|
||||
overflowY: 'auto',
|
||||
maxHeight: 'calc(80vh - var(--vh-offset, 0px))',
|
||||
minHeight: '300px',
|
||||
}}
|
||||
forceRender
|
||||
onOk={() => cancel()}
|
||||
|
@ -124,7 +126,9 @@ const CronLogModal = ({
|
|||
</Button>,
|
||||
]}
|
||||
>
|
||||
{!loading && value && (
|
||||
{loading ? (
|
||||
<PageLoading />
|
||||
) : (
|
||||
<pre
|
||||
style={
|
||||
isPhone
|
||||
|
|
Loading…
Reference in New Issue
Block a user