fix(fulfillment): 稳定任务列表排序并展示任务 ID
This commit is contained in:
@@ -911,7 +911,7 @@ def list_tasks(
|
||||
total = query.count()
|
||||
rows = (
|
||||
query.order_by(
|
||||
PlatformFulfillmentTask.updated_at.desc(),
|
||||
PlatformFulfillmentTask.paid_at.desc(),
|
||||
PlatformFulfillmentTask.id.desc(),
|
||||
)
|
||||
.offset((max(1, page) - 1) * max(1, page_size))
|
||||
|
||||
@@ -586,6 +586,16 @@ export default function PlatformFulfillmentPage() {
|
||||
};
|
||||
|
||||
const columns: ColumnsType<PlatformFulfillmentTask> = [
|
||||
{
|
||||
title: '任务 ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 100,
|
||||
fixed: 'left',
|
||||
render: (value: number) => (
|
||||
<Text copyable={{ text: String(value) }}>#{value}</Text>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: '订单 / 商品',
|
||||
key: 'order',
|
||||
@@ -805,7 +815,7 @@ export default function PlatformFulfillmentPage() {
|
||||
loading={loading}
|
||||
columns={columns}
|
||||
dataSource={rows}
|
||||
scroll={{ x: 1500 }}
|
||||
scroll={{ x: 1600 }}
|
||||
pagination={{
|
||||
current: page,
|
||||
pageSize,
|
||||
|
||||
Reference in New Issue
Block a user