36 lines
1001 B
TypeScript
36 lines
1001 B
TypeScript
|
|
import { IListConfig } from './list-config.model';
|
||
|
|
|
||
|
|
export const consumerListConfig: IListConfig = {
|
||
|
|
pageTitle: 'مدیریت مشتریها',
|
||
|
|
addNewCtaLabel: 'افزودن مشتری',
|
||
|
|
emptyPlaceholderTitle: 'مشتریای یافت نشد',
|
||
|
|
emptyPlaceholderDescription: 'برای افزودن مشتری، روی دکمهٔ بالا کلیک کنید.',
|
||
|
|
columns: [
|
||
|
|
{ field: 'name', header: 'عنوان' },
|
||
|
|
{
|
||
|
|
field: 'business_counts',
|
||
|
|
header: 'تعداد کسبوکارها',
|
||
|
|
customDataModel(item: any) {
|
||
|
|
return item.business_counts || 0;
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
field: 'partner',
|
||
|
|
header: 'ارایهدهنده',
|
||
|
|
type: 'nested',
|
||
|
|
nestedOption: { path: 'partner.name' },
|
||
|
|
},
|
||
|
|
{
|
||
|
|
field: 'status',
|
||
|
|
header: 'وضعیت',
|
||
|
|
type: 'nested',
|
||
|
|
nestedOption: { path: 'status.translate' },
|
||
|
|
},
|
||
|
|
{
|
||
|
|
field: 'created_at',
|
||
|
|
header: 'تاریخ ایجاد',
|
||
|
|
type: 'date',
|
||
|
|
},
|
||
|
|
],
|
||
|
|
};
|