mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
UI fixes to campaign table
This commit is contained in:
parent
ab49fb78e5
commit
57690523ca
2 changed files with 5 additions and 2 deletions
|
@ -24,7 +24,7 @@ export const pagedCampaigns = async (params: SearchParams, projectId: number) =>
|
|||
params,
|
||||
['name'],
|
||||
b => {
|
||||
b.where({ project_id: projectId })
|
||||
b.where({ project_id: projectId }).orderBy('id', 'desc')
|
||||
params?.tags?.length && b.whereIn('id', createTagSubquery(Campaign, projectId, params.tags))
|
||||
return b
|
||||
},
|
||||
|
|
|
@ -69,7 +69,10 @@ export default function Campaigns() {
|
|||
key: 'delivery',
|
||||
cell: ({ item }) => `${item.delivery?.sent ?? 0} / ${item.delivery?.total ?? 0}`,
|
||||
},
|
||||
{ key: 'launched_at' },
|
||||
{
|
||||
key: 'send_at',
|
||||
title: 'Launched At',
|
||||
},
|
||||
{ key: 'updated_at' },
|
||||
{
|
||||
key: 'options',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue