master
LiuJiaNan 2026-04-15 13:54:19 +08:00
parent 0d9179440d
commit f017300e30
2 changed files with 21 additions and 48 deletions

View File

@ -154,53 +154,26 @@ function UserExchangeList(props) {
fixed: "right", fixed: "right",
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{ {(props.entrance === "enterprise" || props.permission("qyd-rykpgl-exchange-info")) && (
props.entrance === "enterprise" <Button
? ( type="link"
<> onClick={() => {
{props.permission("qyd-rykpgl-exchange-info") && ( props.history.push(`./userExchangeRecordList?userId=${record.userId}&corpinfoId=${query.corpinfoId || ""}`);
<Button }}
type="link" >
onClick={() => { 兑换记录
props.history.push(`./userExchangeRecordList?userId=${record.userId}&corpinfoId=${query.corpinfoId}`); </Button>
}} )}
> {(props.entrance === "enterprise" || props.permission("qyd-rykpgl-eval-record")) && (
兑换记录 <Button
</Button> type="link"
)} onClick={() => {
{props.permission("qyd-rykpgl-eval-record") && ( props.history.push(`./hiddenEvaluationList?userId=${record.userId}&corpinfoId=${query.corpinfoId || ""}`);
<Button }}
type="link" >
onClick={() => { 考评详情
props.history.push(`./hiddenEvaluationList?userId=${record.userId}&corpinfoId=${query.corpinfoId}`); </Button>
}} )}
>
考评详情
</Button>
)}
</>
)
: (
<>
<Button
type="link"
onClick={() => {
props.history.push(`./userExchangeRecordList?userId=${record.userId}&corpinfoId=${query.corpinfoId}`);
}}
>
兑换记录
</Button>
<Button
type="link"
onClick={() => {
props.history.push(`./hiddenEvaluationList?userId=${record.userId}&corpinfoId=${query.corpinfoId}`);
}}
>
考评详情
</Button>
</>
)
}
</Space> </Space>
), ),
}, },

View File

@ -47,7 +47,7 @@ function UserExchangeRecordList(props) {
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
props.history.push(`./hiddenExchangeList?hiddenExchangeBathId=${record.hiddenExchangeBathId}&corpinfoId=${query.corpinfoId}`); props.history.push(`./hiddenExchangeList?hiddenExchangeBathId=${record.hiddenExchangeBathId}&corpinfoId=${query.corpinfoId || ""}`);
}} }}
> >
隐患详情 隐患详情