|
@@ -1,6 +1,7 @@
|
|
|
import { ColumnsType } from "antd/es/table"
|
|
import { ColumnsType } from "antd/es/table"
|
|
|
import { Flex, Popconfirm, Image, Tag } from "antd"
|
|
import { Flex, Popconfirm, Image, Tag } from "antd"
|
|
|
import { copy } from "@/utils/utils"
|
|
import { copy } from "@/utils/utils"
|
|
|
|
|
+import dayJs from 'dayjs';
|
|
|
|
|
|
|
|
|
|
|
|
|
export function TableConfig(
|
|
export function TableConfig(
|
|
@@ -110,9 +111,23 @@ export function TableConfig(
|
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
|
render: (_, records) => {
|
|
render: (_, records) => {
|
|
|
const eq = -Math.random()
|
|
const eq = -Math.random()
|
|
|
|
|
+ if (dayJs(records.createTime) > dayJs().startOf('day')) {
|
|
|
|
|
+ return <a onClick={() => copy(`pages/player/index?id=${records.sign}`)}>pages/player/index?id={records.sign}</a>
|
|
|
|
|
+ }
|
|
|
return <a onClick={() => copy(`pages/play/index?vid=${records.sign}&eq=${eq}`)}>pages/play/index?vid={records.sign}&eq={eq}</a>
|
|
return <a onClick={() => copy(`pages/play/index?vid=${records.sign}&eq=${eq}`)}>pages/play/index?vid={records.sign}&eq={eq}</a>
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ title: 'H5路径',
|
|
|
|
|
+ dataIndex: 'h5Path',
|
|
|
|
|
+ key: 'h5Path',
|
|
|
|
|
+ width: 350,
|
|
|
|
|
+ ellipsis: true,
|
|
|
|
|
+ render: (_, records) => {
|
|
|
|
|
+ const link = `https://home.zanxiangnet.com/test.html?id=${records.sign}&appId=${records.previewAppId}`
|
|
|
|
|
+ return <a onClick={() => copy(link)}>{link}</a>
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
title: '项目组',
|
|
title: '项目组',
|
|
|
dataIndex: 'projectGroupIdList',
|
|
dataIndex: 'projectGroupIdList',
|