This commit is contained in:
dengqichen 2024-12-30 14:08:21 +08:00
parent 298866cf00
commit 5e85c51bc4
2 changed files with 334 additions and 358 deletions

View File

@ -144,27 +144,6 @@ const ExternalPage: React.FC = () => {
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: '最后连接时间',
dataIndex: 'lastConnectTime',

View File

@ -1,5 +1,4 @@
import { BaseResponse } from '@/types/base/response';
import {BaseQuery} from "@/types/base";
import {BaseQuery, BaseResponse} from "@/types/base";
// 系统类型枚举
export enum SystemType {
@ -41,8 +40,6 @@ export interface ExternalSystemResponse extends BaseResponse {
username?: string;
password?: string;
token?: string;
syncStatus: SyncStatus;
lastSyncTime?: string;
lastConnectTime?: string;
config?: string;
}