|
|
@ -1,7 +1,7 @@
|
|
|
|
import React, { FC, useEffect, useState } from "react";
|
|
|
|
import React, { FC, useEffect, useState } from "react";
|
|
|
|
import { exceptStr, paginationFun } from "@/utils/common";
|
|
|
|
import { exceptStr, paginationFun } from "@/utils/common";
|
|
|
|
import { defaultPage, ILoading, IPage } from "@/common/types/page";
|
|
|
|
import { defaultPage, ILoading, IPage } from "@/common/types/page";
|
|
|
|
import { message, Spin, Table, Typography } from "antd";
|
|
|
|
import { Button, message, Spin, Table, Typography } from "antd";
|
|
|
|
import { LockOutlined, UnlockOutlined } from "@ant-design/icons";
|
|
|
|
import { LockOutlined, UnlockOutlined } from "@ant-design/icons";
|
|
|
|
import API from "@/api";
|
|
|
|
import API from "@/api";
|
|
|
|
import styles from "./index.less";
|
|
|
|
import styles from "./index.less";
|
|
|
@ -86,7 +86,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
title: "操作",
|
|
|
|
title: "操作",
|
|
|
|
render: (text: string, record: any) => {
|
|
|
|
render: (text: string, record: any) => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<a
|
|
|
|
<Button type="link" style={{ padding: "0" }}
|
|
|
|
onClick={() => {
|
|
|
|
onClick={() => {
|
|
|
|
window.parent.postMessage(
|
|
|
|
window.parent.postMessage(
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -98,7 +98,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
删除
|
|
|
|
删除
|
|
|
|
</a>
|
|
|
|
</Button>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}];
|
|
|
|
}];
|
|
|
@ -278,7 +278,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
width: "100px",
|
|
|
|
width: "100px",
|
|
|
|
fixed: "right",
|
|
|
|
fixed: "right",
|
|
|
|
render: (text: string, record: any) => {
|
|
|
|
render: (text: string, record: any) => {
|
|
|
|
return <a onClick={() => {
|
|
|
|
return <Button type="link" style={{ padding: "0" }} onClick={() => {
|
|
|
|
window.parent.postMessage(
|
|
|
|
window.parent.postMessage(
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: "PR",
|
|
|
|
type: "PR",
|
|
|
@ -286,7 +286,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"*"
|
|
|
|
"*"
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}}>编辑</a>;
|
|
|
|
}}>编辑</Button>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return tmpColumns;
|
|
|
|
return tmpColumns;
|
|
|
|