fix(ui): 修复属性访问和页面标题显示问题
- 修复了导出功能中 props.type 的可选链访问以避免潜在错误 - 修正了计划执行详情页面的标题为"计划应执行总次数"master
parent
76e9070bba
commit
e1b1127e12
|
|
@ -153,7 +153,7 @@ function List(props) {
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
const exportParams = getUrlCriteriaQuery("searchFormKeys", "searchFormValues");
|
const exportParams = getUrlCriteriaQuery("searchFormKeys", "searchFormValues");
|
||||||
|
|
||||||
await downloadBlob("/accident/accident/export", { params: { ...exportParams, eqType: props.type } });
|
await downloadBlob("/accident/accident/export", { params: { ...exportParams, eqType: props?.type } });
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
导出
|
导出
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ function PlanExecutionDetails(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page headerTitle="计划执行总次数" contentPadding="0 20px 20px 20px">
|
<Page headerTitle="计划应执行总次数" contentPadding="0 20px 20px 20px">
|
||||||
<Divider orientation="left">计划信息</Divider>
|
<Divider orientation="left">计划信息</Divider>
|
||||||
<ViewInfo id={query.planId} supervision={props.supervision} />
|
<ViewInfo id={query.planId} supervision={props.supervision} />
|
||||||
<Divider orientation="left">计划执行详情</Divider>
|
<Divider orientation="left">计划执行详情</Divider>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue