feat: 发布人优先级
This commit is contained in:
@ -30,6 +30,11 @@ const HAS_DECLARE_OPTIONS = [
|
|||||||
{ label: '无报单', value: false },
|
{ label: '无报单', value: false },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const PRIORITY_OPTIONS = [
|
||||||
|
{ label: '优先处理', value: 1 },
|
||||||
|
{ label: '正常处理', value: 2 },
|
||||||
|
];
|
||||||
|
|
||||||
const TableList: React.FC = () => {
|
const TableList: React.FC = () => {
|
||||||
const [updateModalOpen, handleUpdateModalOpen] = useState<boolean>(false);
|
const [updateModalOpen, handleUpdateModalOpen] = useState<boolean>(false);
|
||||||
const [currentRow, setCurrentRow] = useState<API.PublisherListItem>();
|
const [currentRow, setCurrentRow] = useState<API.PublisherListItem>();
|
||||||
@ -49,6 +54,16 @@ const TableList: React.FC = () => {
|
|||||||
valueType: 'textarea',
|
valueType: 'textarea',
|
||||||
copyable: true,
|
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: '账号状态',
|
title: '账号状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
|
|||||||
Reference in New Issue
Block a user