mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-13 09:33:43 +08:00
视觉优化
This commit is contained in:
@@ -23,7 +23,7 @@ function renderType(type) {
|
||||
case 'DESCRIBE':
|
||||
return <Tag color="yellow" size='large'>图生文</Tag>;
|
||||
case 'BLEAND':
|
||||
return <Tag color="olive" size='large'>图混合</Tag>;
|
||||
return <Tag color="lime" size='large'>图混合</Tag>;
|
||||
default:
|
||||
return <Tag color="black" size='large'>未知</Tag>;
|
||||
}
|
||||
@@ -35,7 +35,7 @@ function renderCode(code) {
|
||||
case 1:
|
||||
return <Tag color="green" size='large'>已提交</Tag>;
|
||||
case 21:
|
||||
return <Tag color="olive" size='large'>排队中</Tag>;
|
||||
return <Tag color="lime" size='large'>排队中</Tag>;
|
||||
case 22:
|
||||
return <Tag color="orange" size='large'>重复提交</Tag>;
|
||||
default:
|
||||
|
||||
@@ -324,6 +324,18 @@ const RedemptionsTable = () => {
|
||||
},
|
||||
};
|
||||
|
||||
const handleRow = (record, index) => {
|
||||
if (record.status !== 1) {
|
||||
return {
|
||||
style: {
|
||||
background: 'var(--semi-color-disabled-border)',
|
||||
},
|
||||
};
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<EditRedemption refresh={refresh} editingRedemption={editingRedemption} visiable={showEdit}
|
||||
@@ -353,7 +365,7 @@ const RedemptionsTable = () => {
|
||||
// setActivePage(1);
|
||||
// },
|
||||
onPageChange: handlePageChange,
|
||||
}} loading={loading} rowSelection={rowSelection}>
|
||||
}} loading={loading} rowSelection={rowSelection} onRow={handleRow}>
|
||||
</Table>
|
||||
<Button theme='light' type='primary' style={{marginRight: 8}} onClick={
|
||||
() => {
|
||||
|
||||
@@ -437,6 +437,18 @@ const TokensTable = () => {
|
||||
},
|
||||
};
|
||||
|
||||
const handleRow = (record, index) => {
|
||||
if (record.status !== 1) {
|
||||
return {
|
||||
style: {
|
||||
background: 'var(--semi-color-disabled-border)',
|
||||
},
|
||||
};
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<EditToken refresh={refresh} editingToken={editingToken} visiable={showEdit} handleClose={closeEdit}></EditToken>
|
||||
@@ -473,7 +485,7 @@ const TokensTable = () => {
|
||||
setActivePage(1);
|
||||
},
|
||||
onPageChange: handlePageChange,
|
||||
}} loading={loading} rowSelection={rowSelection}>
|
||||
}} loading={loading} rowSelection={rowSelection} onRow={handleRow}>
|
||||
</Table>
|
||||
<Button theme='light' type='primary' style={{marginRight: 8}} onClick={
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user