|
|
@ -4,6 +4,7 @@ import { ExclamationCircleFilled } from "@ant-design/icons";
|
|
|
|
import { exceptStr, paginationFun } from "@/utils/common";
|
|
|
|
import { exceptStr, paginationFun } from "@/utils/common";
|
|
|
|
import { defaultPage, IPage } from "@/common/types";
|
|
|
|
import { defaultPage, IPage } from "@/common/types";
|
|
|
|
import styles from "@/pages/atdTable/components/index.less";
|
|
|
|
import styles from "@/pages/atdTable/components/index.less";
|
|
|
|
|
|
|
|
import cs from "classnames";
|
|
|
|
|
|
|
|
|
|
|
|
const { Text } = Typography;
|
|
|
|
const { Text } = Typography;
|
|
|
|
const CommonTable: FC = (props) => {
|
|
|
|
const CommonTable: FC = (props) => {
|
|
|
@ -89,10 +90,13 @@ const CommonTable: FC = (props) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
...it,
|
|
|
|
...it,
|
|
|
|
render: (text: string, record: any) => (<Space>
|
|
|
|
render: (text: string, record: any) => (<Space>
|
|
|
|
<Button type="link" danger>{text}</Button>
|
|
|
|
<span className={cs({ [styles["danger"]]: record?.declareStatus === "DECLARE_FAIL" })}>{text}</span>
|
|
|
|
<Tooltip placement="top" title={record?.declareErrorMsg}>
|
|
|
|
{
|
|
|
|
<ExclamationCircleFilled style={{ color: "orange", fontSize: 16 }}/>
|
|
|
|
record?.declareErrorMsg &&
|
|
|
|
</Tooltip>
|
|
|
|
<Tooltip placement="top" title={record?.declareErrorMsg}>
|
|
|
|
|
|
|
|
<ExclamationCircleFilled style={{ color: "orange", fontSize: 16 }}/>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
}
|
|
|
|
</Space>)
|
|
|
|
</Space>)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|