|
@@ -6,7 +6,7 @@ import { copy } from "@/utils/utils"
|
|
|
export function TableConfig(
|
|
export function TableConfig(
|
|
|
handleEdit?: (d: Record<string, any>, isCopy?: boolean) => void,
|
|
handleEdit?: (d: Record<string, any>, isCopy?: boolean) => void,
|
|
|
handleDel?: (data: number[]) => void,
|
|
handleDel?: (data: number[]) => void,
|
|
|
- handleCode?: (appid: string, id: number) => void
|
|
|
|
|
|
|
+ handleCode?: (appid: string, vid: string) => void
|
|
|
): ColumnsType<any> {
|
|
): ColumnsType<any> {
|
|
|
|
|
|
|
|
const arr: ColumnsType<any> = [
|
|
const arr: ColumnsType<any> = [
|
|
@@ -156,7 +156,7 @@ export function TableConfig(
|
|
|
return <Flex gap={4}>
|
|
return <Flex gap={4}>
|
|
|
<a onClick={() => handleEdit?.(records, true)}>复制</a>
|
|
<a onClick={() => handleEdit?.(records, true)}>复制</a>
|
|
|
<a onClick={() => handleEdit?.(records)}>修改</a>
|
|
<a onClick={() => handleEdit?.(records)}>修改</a>
|
|
|
- {records?.previewAppId && <a onClick={() => handleCode?.(records.previewAppId, records.id)}>小程序预览链接</a>}
|
|
|
|
|
|
|
+ {records?.previewAppId && <a onClick={() => handleCode?.(records.previewAppId, records.sign)}>小程序预览链接</a>}
|
|
|
<Popconfirm
|
|
<Popconfirm
|
|
|
title="确定删除?"
|
|
title="确定删除?"
|
|
|
onConfirm={() => { handleDel?.([records.id]) }}
|
|
onConfirm={() => { handleDel?.([records.id]) }}
|