提交任务上传历史列表的时间修改

This commit is contained in:
Lrd
2026-06-26 13:25:35 +08:00
parent 02c068e693
commit c0e8d1caae
3 changed files with 100 additions and 118 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -28,7 +28,7 @@
} }
})(); })();
</script> </script>
<script type="module" crossorigin src="/assets/index-CB5fB-gc.js"></script> <script type="module" crossorigin src="/assets/index-59NFnZ6x.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-eLRg4pQk.css"> <link rel="stylesheet" crossorigin href="/assets/index-eLRg4pQk.css">
</head> </head>
<body> <body>
+17 -35
View File
@@ -1518,18 +1518,6 @@ const GeneratedRecord: React.FC = () => {
key: 'accountName', key: 'accountName',
width: 120, width: 120,
}, },
{
title: '授权应用ID',
dataIndex: 'appid',
key: 'appid',
width: 120,
},
{
title: '授权用户ID',
dataIndex: 'accountUserid',
key: 'accountUserid',
width: 120,
},
{ {
title: '授权账户角色', title: '授权账户角色',
dataIndex: 'accountRole', dataIndex: 'accountRole',
@@ -1566,6 +1554,12 @@ const GeneratedRecord: React.FC = () => {
width: 120, width: 120,
render: (text: string) => <span style={{ color: text ? '#1e293b' : '#94a3b8' }}>{text || '-'}</span>, render: (text: string) => <span style={{ color: text ? '#1e293b' : '#94a3b8' }}>{text || '-'}</span>,
}, },
{
title: '授权用户ID',
dataIndex: 'accountUserid',
key: 'accountUserid',
width: 120,
},
]} ]}
loading={oauthLoading} loading={oauthLoading}
pagination={{ pagination={{
@@ -1739,25 +1733,6 @@ const GeneratedRecord: React.FC = () => {
key: 'advertiserId', key: 'advertiserId',
width: 180, width: 180,
}, },
// {
// title: '状态',
// dataIndex: 'status',
// key: 'status',
// width: 100,
// render: (status: number, record: any) => {
// const statusColorMap: Record<number, string> = {
// 1: '#f59e0b',
// 2: '#6366f1',
// 3: '#10b981',
// 4: '#ef4444',
// };
// return (
// <Tag color={statusColorMap[status] || '#64748b'} style={{ borderRadius: 4 }}>
// {record.status_text || status}
// </Tag>
// );
// },
// },
{ {
title: '状态', title: '状态',
dataIndex: 'status', dataIndex: 'status',
@@ -1787,7 +1762,7 @@ const GeneratedRecord: React.FC = () => {
title: '备注', title: '备注',
dataIndex: 'note', dataIndex: 'note',
key: 'note', key: 'note',
width: 250, width: 160,
ellipsis: true, ellipsis: true,
render: (note: string) => ( render: (note: string) => (
<span style={{ color: '#94a3b8' }}> <span style={{ color: '#94a3b8' }}>
@@ -1797,10 +1772,17 @@ const GeneratedRecord: React.FC = () => {
}, },
{ {
title: '创建时间', title: '创建时间',
dataIndex: 'created_at', dataIndex: 'createdAt',
key: 'created_at', key: 'createdAt',
width: 180, width: 180,
render: (date: string) => dayjs(date).format('YYYY-MM-DD HH:mm:ss'), render: (text: string) => formatDateTime(text),
},
{
title: '更新时间',
dataIndex: 'updatedAt',
key: 'updatedAt',
width: 180,
render: (text: string) => formatDateTime(text),
}, },
]} ]}