import type { ProColumns } from '@ant-design/pro-components'; import { Badge, Button, Image, Space, Typography } from 'antd'; import dayjs from 'dayjs'; import type { Prod } from '@/services/prod/prod-manager'; const { Text } = Typography; export const baseTenantColumns: ProColumns[] = [ { title: '商品', dataIndex: 'prodName', render: (_, record) => (
{record.categoryName}
ID:{record.categoryName}
类目:{record.categoryName}
), }, { title: '服务信息', dataIndex: 'categoryId', render: () => (
服务区域:
服务区域:
紧急服务:
), }, { title: '状态', dataIndex: 'status', valueType: 'switch', width: 300, hideInSearch: true, render: () => ( ), }, { title: '时间信息', dataIndex: 'createTime', valueType: 'dateRange', hideInSearch: true, // 在搜索表单中隐藏 render: (_, record) => (
某某某某有限公司
创建时间: {dayjs(record.createTime).format('YYYY-MM-DD HH:mm:ss')}
更新时间: {dayjs(record.updateTime).format('YYYY-MM-DD HH:mm:ss')}
), }, ];