1
This commit is contained in:
parent
298866cf00
commit
5e85c51bc4
21
frontend/src/pages/Deploy/External/index.tsx
vendored
21
frontend/src/pages/Deploy/External/index.tsx
vendored
@ -144,27 +144,6 @@ const ExternalPage: React.FC = () => {
|
|||||||
return authTypeMap[authType];
|
return authTypeMap[authType];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '同步状态',
|
|
||||||
dataIndex: 'syncStatus',
|
|
||||||
width: 120,
|
|
||||||
render: (status: SyncStatus, record) => {
|
|
||||||
const statusConfig = {
|
|
||||||
[SyncStatus.SUCCESS]: { icon: <CheckCircleOutlined />, color: 'success', text: '成功' },
|
|
||||||
[SyncStatus.FAILED]: { icon: <CloseCircleOutlined />, color: 'error', text: '失败' },
|
|
||||||
[SyncStatus.RUNNING]: { icon: <SyncOutlined spin />, color: 'processing', text: '同步中' },
|
|
||||||
NONE: { icon: <MinusCircleOutlined />, color: 'default', text: '未同步' }
|
|
||||||
};
|
|
||||||
const config = statusConfig[status] || statusConfig.NONE;
|
|
||||||
return (
|
|
||||||
<Tooltip title={record.lastSyncTime || '未同步'}>
|
|
||||||
<Tag icon={config.icon} color={config.color}>
|
|
||||||
{config.text}
|
|
||||||
</Tag>
|
|
||||||
</Tooltip>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '最后连接时间',
|
title: '最后连接时间',
|
||||||
dataIndex: 'lastConnectTime',
|
dataIndex: 'lastConnectTime',
|
||||||
|
|||||||
5
frontend/src/pages/Deploy/External/types.ts
vendored
5
frontend/src/pages/Deploy/External/types.ts
vendored
@ -1,5 +1,4 @@
|
|||||||
import { BaseResponse } from '@/types/base/response';
|
import {BaseQuery, BaseResponse} from "@/types/base";
|
||||||
import {BaseQuery} from "@/types/base";
|
|
||||||
|
|
||||||
// 系统类型枚举
|
// 系统类型枚举
|
||||||
export enum SystemType {
|
export enum SystemType {
|
||||||
@ -41,8 +40,6 @@ export interface ExternalSystemResponse extends BaseResponse {
|
|||||||
username?: string;
|
username?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
token?: string;
|
token?: string;
|
||||||
syncStatus: SyncStatus;
|
|
||||||
lastSyncTime?: string;
|
|
||||||
lastConnectTime?: string;
|
lastConnectTime?: string;
|
||||||
config?: string;
|
config?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user