This commit is contained in:
francis-fh
2026-06-17 00:27:11 +08:00
parent 077f6548cf
commit 37e3f3bd6b
3 changed files with 14 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
import React, { Fragment, useEffect, useRef, useState } from 'react';
import { FormattedMessage, useAccess } from '@umijs/max';
import { Button, FormInstance, message, Modal } from 'antd';
import { Button, FormInstance, message, Modal, Tag } from 'antd';
import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components';
import { DeleteOutlined, FormOutlined, PlusOutlined, AlignLeftOutlined, AuditOutlined } from '@ant-design/icons';
import EditCompanyListRow, { CompanyDetailView } from './edit';
@@ -142,16 +142,17 @@ function ManagementList() {
valueType: 'select',
align: 'center',
valueEnum: {
0: { text: '待审核', status: 'Processing' },
1: { text: '通过', status: 'Success' },
2: { text: '驳回', status: 'Error' },
},
render: (_, record) => {
if (record.status === 1) {
return <span style={{ color: '#52c41a' }}></span>;
return <Tag color="success"></Tag>;
} else if (record.status === 2) {
return <span style={{ color: '#ff4d4f' }}></span>;
return <Tag color="error"></Tag>;
}
return <span style={{ color: '#999' }}></span>;
return <Tag color="orange"></Tag>;
},
},
{