泛微薪资核算iframe表格
This commit is contained in:
parent
d9ff45a687
commit
3fef9c4857
|
|
@ -77,6 +77,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
.danger {
|
||||
font-size: 12px;
|
||||
color: rgb(217, 0, 27)
|
||||
}
|
||||
|
||||
:global {
|
||||
.ant-btn-link, .ant-dropdown-trigger {
|
||||
padding: 0;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { ExclamationCircleFilled } from "@ant-design/icons";
|
|||
import { exceptStr, paginationFun } from "@/utils/common";
|
||||
import { defaultPage, IPage } from "@/common/types";
|
||||
import styles from "@/pages/atdTable/components/index.less";
|
||||
import cs from "classnames";
|
||||
|
||||
const { Text } = Typography;
|
||||
const CommonTable: FC = (props) => {
|
||||
|
|
@ -89,10 +90,13 @@ const CommonTable: FC = (props) => {
|
|||
return {
|
||||
...it,
|
||||
render: (text: string, record: any) => (<Space>
|
||||
<Button type="link" danger>{text}</Button>
|
||||
<Tooltip placement="top" title={record?.declareErrorMsg}>
|
||||
<ExclamationCircleFilled style={{ color: "orange", fontSize: 16 }}/>
|
||||
</Tooltip>
|
||||
<span className={cs({ [styles["danger"]]: record?.declareStatus === "DECLARE_FAIL" })}>{text}</span>
|
||||
{
|
||||
record?.declareErrorMsg &&
|
||||
<Tooltip placement="top" title={record?.declareErrorMsg}>
|
||||
<ExclamationCircleFilled style={{ color: "orange", fontSize: 16 }}/>
|
||||
</Tooltip>
|
||||
}
|
||||
</Space>)
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue