修改素材列表前测状态

This commit is contained in:
Lrd
2026-06-26 11:01:32 +08:00
parent c06c4b1dde
commit b152085918
5 changed files with 149 additions and 1039 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -5
View File
@@ -28,11 +28,7 @@
}
})();
</script>
<<<<<<< HEAD
<script type="module" crossorigin src="/assets/index-D9QoFfGP.js"></script>
=======
<script type="module" crossorigin src="/assets/index-WjS6rFiW.js"></script>
>>>>>>> 3b9e5fab104c33eca7e35adc1c6a4ff8ed9cbd60
<script type="module" crossorigin src="/assets/index-Dm7vTAAt.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-eLRg4pQk.css">
</head>
<body>
+7 -9
View File
@@ -35,10 +35,9 @@ const resourceTypeConfig: Record<string, { label: string; color: string }> = {
// 状态配置
const statusConfig: Record<string, { label: string; color: string }> = {
'1': { label: '待上传', color: 'orange' },
'2': { label: '上传中', color: 'processing' },
'3': { label: '上传成功', color: 'success' },
'4': { label: '上传失败', color: 'error' },
'FAILED': { label: '失败', color: 'error' },
'PENDING': { label: '处理中', color: 'processing' },
'SUCCESS': { label: '成功', color: 'success' },
};
interface MaterialResource {
@@ -233,11 +232,10 @@ const MaterialListPage: React.FC = () => {
dataIndex: 'status',
key: 'status',
width: 100,
render: (text: string) => <span style={{ color: '#64748b' }}>{text || '-'}</span>,
// render: (text: string) => {
// const config = statusConfig[text];
// return <Tag color={config?.color}>{config?.label || text}</Tag>;
// },
render: (text: string) => {
const config = statusConfig[text];
return <Tag color={config?.color}>{config?.label || text || '-'}</Tag>;
},
},
{
title: '前测结果',