import { PageStatusEnum, PageTypeEnum, SourceTypeEnum } from '@/services/launchAdq/enum' import React from 'react' import { Badge } from 'antd' import { copy } from '@/utils/utils' function tableConfig(tableIdClick: any): any { return [ { title: '所属账号', dataIndex: 'accountId', key: 'accountId', align: 'center', width:100, render:(a:string)=>{ return tableIdClick({ activeKey: '1', parma: { accountId: a } })}>{a} } }, { title: '落地页ID', dataIndex: 'pageId', key: 'pageId', align: 'center', width:100, render:(a:string)=>{ return copy(a)}>{a} } }, { title: '落地页名称', dataIndex: 'pageName', key: 'pageName', align: 'center', }, // { // title: '原生页类型', // dataIndex: 'canvasType', // key: 'canvasType', // align: 'center', // width:110, // render: (a: string | number) => { // return CanvasTypeEnum[a] // } // }, { title: '落地页类型', dataIndex: 'pageType', key: 'pageType', align: 'center', width:110, render: (a: string) => { return PageTypeEnum[a] } }, { title: '落地页状态', dataIndex: 'pageStatus', key: 'pageStatus', align: 'center', width:90, render:(a: string | number)=>{ return } }, { title: '配置来源', dataIndex: 'sourceType', key: 'sourceType', align: 'center', width:110, render: (a: any, b: any) => { return SourceTypeEnum[a] } }, // { // title: '微信原生页视频资源状态', // dataIndex: 'videoResourceStatus', // key: 'videoResourceStatus', // align: 'center', // width:160, // render: (a: any, b: any) => { // return // } // }, { title: '创建时间', dataIndex: 'createdTime', key: 'createdTime', align: 'center', width:160, }, ] } export default tableConfig