feat: 发布人优先级

This commit is contained in:
chashaobao
2025-09-19 22:45:32 +08:00
parent 88977f36cd
commit 55ceed2b2e

View File

@ -30,6 +30,11 @@ const HAS_DECLARE_OPTIONS = [
{ label: '无报单', value: false },
];
const PRIORITY_OPTIONS = [
{ label: '优先处理', value: 1 },
{ label: '正常处理', value: 2 },
];
const TableList: React.FC = () => {
const [updateModalOpen, handleUpdateModalOpen] = useState<boolean>(false);
const [currentRow, setCurrentRow] = useState<API.PublisherListItem>();
@ -49,6 +54,16 @@ const TableList: React.FC = () => {
valueType: 'textarea',
copyable: true,
},
{
title: '优先级',
dataIndex: 'priority',
renderText(status: number) {
return PRIORITY_OPTIONS.find(option => option.value === status)?.label;
},
renderFormItem() {
return <Select showSearch allowClear options={PRIORITY_OPTIONS} />;
},
},
{
title: '账号状态',
dataIndex: 'status',