12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import { PageStatusEnum, PageTypeEnum, SourceTypeEnum } from '@/services/launchAdq/enum'
- import React from 'react'
- import { Badge } from 'antd'
- function tableConfig(): any {
- return [
- {
- title: '所属账号',
- dataIndex: 'accountId',
- key: 'accountId',
- align: 'center',
- width:100,
- render:(a:string)=>{
- return <a>{a}</a>
- }
- },
- {
- title: '落地页ID',
- dataIndex: 'pageId',
- key: 'pageId',
- align: 'center',
- width:100,
- render:(a:string)=>{
- return <a>{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 <Badge status={a === 'NORMAL' ? "processing" :"error" } text={PageStatusEnum[a]} />
- }
- },
- {
- 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 <Badge status={a === 'VIDEO_RESOURCE_STATUS_VALID' ? "processing" :a === 'VIDEO_RESOURCE_STATUS_PENDING'? "warning" :"error" } text={VideoResourceStatusEnum[a]} />
- // }
- // },
- {
- title: '创建时间',
- dataIndex: 'createdTime',
- key: 'createdTime',
- align: 'center',
- width:160,
- },
- ]
- }
- export default tableConfig
|