fix(inspection): 修复检查视图中的打印按钮显示逻辑和隐藏部位列

master
fangjiakai 2026-01-20 15:14:40 +08:00
parent e1b1127e12
commit 53aa7e79cf
1 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ function InspectionView(props) {
}, []);
return (
<Page headerTitle="查看" extraActionButtons={<Button type="primary" onClick={handlePrint}>打印</Button>}>
<Page headerTitle="查看" extraActionButtons={info.status === 500 && <Button type="primary" onClick={handlePrint}>打印</Button>}>
<Spin spinning={props.inspection.inspectionLoading || getFileLoading}>
<div ref={contentRef}>
<Divider orientation="left">
@ -120,7 +120,7 @@ function InspectionView(props) {
options={false}
columns={[
{ title: "隐患描述", dataIndex: "hiddenDesc" },
{ title: "隐患部位", dataIndex: "hiddenPartName" },
// { title: "隐患部位", dataIndex: "hiddenPartName" },
{
title: "操作",
render: (_, record) => (
@ -154,7 +154,7 @@ function InspectionView(props) {
<tr>
<th>序号</th>
<th>隐患描述</th>
<th>隐患部位</th>
{/*<th>隐患部位</th>*/}
</tr>
</thead>
<tbody>
@ -163,7 +163,7 @@ function InspectionView(props) {
<tr key={item.id}>
<td>{index + 1}</td>
<td>{item.hiddenDesc}</td>
<td>{item.hiddenPartName}</td>
{/*<td>{item.hiddenPartName}</td>*/}
</tr>
))
}