fix(inspection): 修复检查视图中的打印按钮显示逻辑和隐藏部位列
parent
e1b1127e12
commit
53aa7e79cf
|
|
@ -73,7 +73,7 @@ function InspectionView(props) {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
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}>
|
<Spin spinning={props.inspection.inspectionLoading || getFileLoading}>
|
||||||
<div ref={contentRef}>
|
<div ref={contentRef}>
|
||||||
<Divider orientation="left">
|
<Divider orientation="left">
|
||||||
|
|
@ -120,7 +120,7 @@ function InspectionView(props) {
|
||||||
options={false}
|
options={false}
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "隐患描述", dataIndex: "hiddenDesc" },
|
{ title: "隐患描述", dataIndex: "hiddenDesc" },
|
||||||
{ title: "隐患部位", dataIndex: "hiddenPartName" },
|
// { title: "隐患部位", dataIndex: "hiddenPartName" },
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
|
|
@ -154,7 +154,7 @@ function InspectionView(props) {
|
||||||
<tr>
|
<tr>
|
||||||
<th>序号</th>
|
<th>序号</th>
|
||||||
<th>隐患描述</th>
|
<th>隐患描述</th>
|
||||||
<th>隐患部位</th>
|
{/*<th>隐患部位</th>*/}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -163,7 +163,7 @@ function InspectionView(props) {
|
||||||
<tr key={item.id}>
|
<tr key={item.id}>
|
||||||
<td>{index + 1}</td>
|
<td>{index + 1}</td>
|
||||||
<td>{item.hiddenDesc}</td>
|
<td>{item.hiddenDesc}</td>
|
||||||
<td>{item.hiddenPartName}</td>
|
{/*<td>{item.hiddenPartName}</td>*/}
|
||||||
</tr>
|
</tr>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue