added function for trigger in admin
This commit is contained in:
@@ -29,6 +29,16 @@ export const cols: BaseTableColumn[] = [
|
||||
return record.index + 1
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'مشتری',
|
||||
dataIndex: 'customer',
|
||||
key: 'customer',
|
||||
type: 'Text',
|
||||
customRender: ({ record }) => {
|
||||
const name = record.customer?.name?.trim()
|
||||
return name ? `${name} (${record.customer_id})` : String(record.customer_id ?? '-')
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'کد مشتری',
|
||||
dataIndex: 'customer_id',
|
||||
@@ -203,6 +213,15 @@ export const cols: BaseTableColumn[] = [
|
||||
{
|
||||
title: 'روش ارسال',
|
||||
dataIndex: 'action',
|
||||
key: 'action',
|
||||
}
|
||||
key: 'notify_action',
|
||||
customRender: ({ record }) => (record.action === 'email' ? 'ایمیل' : 'پیامک'),
|
||||
},
|
||||
{
|
||||
title: 'عملیات',
|
||||
dataIndex: 'row_action',
|
||||
key: 'row_action',
|
||||
slot: 'action',
|
||||
fixed: 'right',
|
||||
filterable: false,
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user