查看详情路径跳转错误bug
parent
d3c9cd4a3d
commit
f2c1b927c4
|
|
@ -52,7 +52,11 @@ function PersonnelExecutionDetails(props) {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.history.push(props.supervision === "1" ? `../../inspectionView?id=${record.id}&inspectionId=${record.inspectionId}` : `../../inspectionView?id=${record.id}&inspectionId=${record.inspectionId}`);
|
let url = `../../inspectionView?id=${record.id}&inspectionId=${record.inspectionId}`;
|
||||||
|
if (props.level === "one") {
|
||||||
|
url = `../inspectionView?id=${record.id}&inspectionId=${record.inspectionId}`;
|
||||||
|
}
|
||||||
|
props.history.push(url);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import PersonnelExecutionDetailsA from "~/pages/Container/BranchCompany/Plan/Management/PersonnelExecutionDetails";
|
import PersonnelExecutionDetailsA from "~/pages/Container/BranchCompany/Plan/Management/PersonnelExecutionDetails";
|
||||||
|
|
||||||
function PersonnelExecutionDetails(props) {
|
function PersonnelExecutionDetails(props) {
|
||||||
return <PersonnelExecutionDetailsA {...props} supervision={"1"} />;
|
return <PersonnelExecutionDetailsA {...props} supervision="1" level="two" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default PersonnelExecutionDetails;
|
export default PersonnelExecutionDetails;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import PersonnelExecutionDetailsA from "~/pages/Container/BranchCompany/Plan/Management/PersonnelExecutionDetails";
|
import PersonnelExecutionDetailsA from "~/pages/Container/BranchCompany/Plan/Management/PersonnelExecutionDetails";
|
||||||
|
|
||||||
function PersonnelExecutionDetails(props) {
|
function PersonnelExecutionDetails(props) {
|
||||||
return <PersonnelExecutionDetailsA {...props} supervision="1" />;
|
return <PersonnelExecutionDetailsA {...props} supervision="1" level="one" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default PersonnelExecutionDetails;
|
export default PersonnelExecutionDetails;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue