Files
lgp-admin-plus/apps/web-antd/src/views/customer/dealer/config/table.ts
年糕崽崽 27135f4ae6 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:19:06 +08:00

41 lines
1.2 KiB
TypeScript

import { actionColumn, createGridOptions } from '#/components/crud';
import { wxUserApi } from '#/views/customer/wx-user/api';
/** 经销商列表:固定 is_p=1 */
export const gridOptions = createGridOptions({
columns: [
{ field: 'id', align: 'left', title: 'ID', width: 80 },
{ field: 'avatar', title: '头像', width: 80, slots: { default: 'avatar' } },
{ field: 'nick_name', align: 'left', title: '昵称', minWidth: 140 },
{ field: 'phone', title: '手机号', width: 140 },
{
field: 'enterprise_name',
title: '所属企业',
minWidth: 140,
slots: { default: 'enterprise' },
},
{
field: 'show_price',
title: '可见价格',
width: 110,
slots: { default: 'showPrice' },
},
{
field: 'price_number',
title: '价格倍率',
width: 110,
slots: { default: 'multiplier' },
},
{
field: 'template_code',
title: '专属模板',
minWidth: 220,
slots: { default: 'template' },
},
{ field: 'created_at', title: '注册时间', width: 180 },
actionColumn(320),
],
query: (params) => wxUserApi.list({ ...params, is_p: 1 }),
});