dev_1.2
tangjie 2026-07-27 18:06:06 +08:00
parent a42e658686
commit 1d9735f020
4 changed files with 16 additions and 77 deletions

View File

@ -343,6 +343,7 @@ export const MATERIAL_TYPE_OPTIONS = [
{ label: "报告资料", value: "REPORT" },
{ label: "整改资料", value: "RECTIFICATION" },
{ label: "其他项目资料", value: "OTHER" },
{ label: "归档", value: "ARCHIVED" },
];
export const MATERIAL_TYPE_MAP = MATERIAL_TYPE_OPTIONS.reduce((acc, cur) => {

View File

@ -148,16 +148,16 @@ const ProjectProgress = (props) => {
);
},
},
{
title: "操作",
width: 80,
fixed: "right",
render: (_, record) => (
<Button type="link" size="small" onClick={() => handleView(record)}>
查看
</Button>
),
},
// {
// title: "操作",
// width: 80,
// fixed: "right",
// render: (_, record) => (
// <Button type="link" size="small" onClick={() => handleView(record)}>
// 查看
// </Button>
// ),
// },
];
return (

View File

@ -21,12 +21,12 @@ const STAGES = [
const downloadTemplate = async () => {
try {
const res = await fetch("https://test-dragon-yf-pub.oss-cn-hangzhou.aliyuncs.com/jjb/6a608cb30dc53ed98d0b13ae.pdf");
const res = await fetch("https://test-dragon-yf-pub.oss-cn-hangzhou.aliyuncs.com/jjb/6a6726510dc57d9450a911be.docx");
const blob = await res.blob();
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "从业告知书模板.pdf";
a.download = "从业告知书模板.docx";
a.click();
URL.revokeObjectURL(url);
} catch {
@ -54,7 +54,7 @@ const NoticePanel = () => (
<span className="pf-template-icon">📄</span>
<div>
<div className="pf-template-name">从业告知书模板</div>
<div className="pf-template-desc">PDF 格式可下载后在线填写并打印盖章</div>
{/* <div className="pf-template-desc">PDF 格式,可下载后在线填写并打印盖章</div> */}
</div>
</div>
<Button type="primary" ghost size="small" icon={<DownloadOutlined />} onClick={downloadTemplate}>

View File

@ -29,8 +29,7 @@ const RiskWarning = (props) => {
const [dataSource, setDataSource] = useState([]);
const [total, setTotal] = useState(0);
const [statData, setStatData] = useState({});
const [handleModalVisible, setHandleModalVisible] = useState(false);
const [currentRecord, setCurrentRecord] = useState(null);
const { riskWarningPageLoading } = props.safetyEvalBusiness;
@ -80,11 +79,6 @@ const RiskWarning = (props) => {
getData();
};
const handleProcess = (record) => {
setCurrentRecord(record);
setHandleModalVisible(true);
};
const handleCloseRisk = async (record) => {
Modal.confirm({
title: "确认闭环",
@ -142,9 +136,6 @@ const RiskWarning = (props) => {
fixed: "right",
render: (_, record) => (
<Space>
<Button type="link" size="small" onClick={() => handleProcess(record)}>
处理
</Button>
<Button type="link" size="small" onClick={() => handleCloseRisk(record)}>
闭环
</Button>
@ -261,60 +252,7 @@ const RiskWarning = (props) => {
onChange={handlePageChange}
/>
<Modal
title="风险处置"
open={handleModalVisible}
onCancel={() => setHandleModalVisible(false)}
footer={null}
width={600}
destroyOnHide={true}
>
{currentRecord && (
<div>
<p>
<strong>项目</strong>
{currentRecord.projectName}
</p>
<p>
<strong>风险等级</strong>
<Tag color={RISK_LEVEL_MAP[currentRecord.riskLevelCode]?.color}>
{currentRecord.riskLevelName}
</Tag>
</p>
<p>
<strong>预警类型</strong>
{currentRecord.warningTypeName}
</p>
<p>
<strong>触发条件</strong>
{currentRecord.triggerCondition}
</p>
<p>
<strong>责任人</strong>
{currentRecord.responsiblePerson}
</p>
<p>
<strong>预警时间</strong>
{currentRecord.warningTime}
</p>
<div style={{ textAlign: "right", marginTop: 24 }}>
<Space>
<Button onClick={() => setHandleModalVisible(false)}>取消</Button>
<Button
type="primary"
onClick={() => {
message.success("处理完成");
setHandleModalVisible(false);
getData();
}}
>
确认处理
</Button>
</Space>
</div>
</div>
)}
</Modal>
</PageLayout>
);
};