add date filter for CustomerList.vue
This commit is contained in:
@@ -9,6 +9,8 @@ export type CustomerPage = Page<Customer> & {
|
||||
keyword?: string;
|
||||
storeId?: string;
|
||||
tagIdList?: string[];
|
||||
beginCreatedAt?: number;
|
||||
endCreatedAt?: number;
|
||||
};
|
||||
|
||||
async function list(page: CustomerPage): Promise<PageResult<Customer>> {
|
||||
@@ -19,6 +21,8 @@ async function list(page: CustomerPage): Promise<PageResult<Customer>> {
|
||||
keyword: page.keyword || page.likesExample?.code || page.likesExample?.name || page.likesExample?.telephone,
|
||||
storeId: page.storeId || req.equalsExample?.storeId,
|
||||
tagIdList: page.tagIdList || [],
|
||||
beginCreatedAt: page.beginCreatedAt,
|
||||
endCreatedAt: page.endCreatedAt,
|
||||
orderMap: page.orderMap || {}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user