fixed:监管端二级项目审核,查看按钮不正确的问题

master
dearLin 2026-03-10 11:16:28 +08:00
parent a361c77dff
commit 9f5e58f9d4
1 changed files with 25 additions and 4 deletions

View File

@ -64,17 +64,38 @@ function List(props) {
width: 150,
render: (_, record) => (
<Space>
{props.permission(record.projectStatus === 1 ? "xmsh-gfd-ejxmsh-btn-sh" : "xmsh-gfd-ejxmsh-btn-ck") && (
{props.permission("xmsh-gfd-ejxmsh-btn-ck") && (
<Button
type="link"
onClick={() => {
props.history.push(`./reView?id=${record.id}&projectStatusLast=1`);
props.history.push(`./reView?id=${record.id}`);
}}
disabled={record.projectStatus === 1 && record.currentUserCanAudit === 2}
>
{record.projectStatus === 1 ? "审核" : "查看"}
查看
</Button>
)}
{props.permission("xmsh-gfd-ejxmsh-btn-sh") && (record.projectStatus === 3 || record.projectStatus === 1) && (
<Button
type="link"
onClick={() => {
props.history.push(`./reView?id=${record.id}&projectStatusLast=${record.projectStatus}`);
}}
disabled={record.currentUserCanAudit === 2}
>
审核
</Button>
)}
{/*{props.permission(record.projectStatus === 1 ? "xmsh-gfd-ejxmsh-btn-sh" : "xmsh-gfd-ejxmsh-btn-ck") && (*/}
{/* <Button*/}
{/* type="link"*/}
{/* onClick={() => {*/}
{/* props.history.push(`./reView?id=${record.id}&projectStatusLast=1`);*/}
{/* }}*/}
{/* disabled={record.projectStatus === 1 && record.currentUserCanAudit === 2}*/}
{/* >*/}
{/* {record.projectStatus === 1 ? "审核" : "查看"}*/}
{/* </Button>*/}
{/*)}*/}
{(props.permission("xmsh-gfd-ejxmsh-btn-ckbhyy") && record.projectStatus === 6) && (
<Button
type="link"