dev
luotaiqian 2026-07-09 17:16:40 +08:00
parent 7352e0ee9c
commit a347a89ba6
1 changed files with 2 additions and 6 deletions

View File

@ -13,7 +13,6 @@ import {
} from "antd";
import TableAction from "@cqsjjb/jjb-react-admin-component/TableAction";
import AttachmentUpload from "~/components/AttachmentUpload";
import PreviewUrlButton from "~/components/PreviewUrlButton";
import { useEffect, useState } from "react";
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
import SearchForm from "@cqsjjb/jjb-react-admin-component/SearchForm";
@ -353,13 +352,10 @@ function ViewModal({ open, currentId, requestDetail, onCancel }) {
</Descriptions.Item>
<Descriptions.Item label="备注">{info.remark}</Descriptions.Item>
<Descriptions.Item label="离职通知报告">
<a href={info.reportFileUrl} target="_blank" rel="noopener noreferrer">
查看
</a>
{info.reportFileUrl ? (
<PreviewUrlButton url={info.reportFileUrl}>
<a href={info.reportFileUrl} target="_blank" rel="noopener noreferrer">
查看文件
</PreviewUrlButton>
</a>
) : (
"-"
)}