Commit 97ac30eb authored by XieZhiXiong's avatar XieZhiXiong

添加判断条件

parent 5b657739
...@@ -11,6 +11,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte ...@@ -11,6 +11,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import { FORM_FILTER_PATH } from '@/formSchema/const'; import { FORM_FILTER_PATH } from '@/formSchema/const';
import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect'; import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { MEMBER_INNER_STATUS_SUCCESS } from '@/constants';
import { auditSchema } from './schema'; import { auditSchema } from './schema';
import { import {
MEMBER_STATUS_TAG_MAP, MEMBER_STATUS_TAG_MAP,
...@@ -44,11 +45,15 @@ const MemberPrConfirm: React.FC<{}> = props => { ...@@ -44,11 +45,15 @@ const MemberPrConfirm: React.FC<{}> = props => {
dataIndex: 'name', dataIndex: 'name',
align: 'center', align: 'center',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<EyePreview <>
url={`/memberAbility/manage/auditPrComfirm?id=${record.memberId}&validateId=${record.validateId}&preview=1`} {record.innerStatus !== MEMBER_INNER_STATUS_SUCCESS ? (
> <EyePreview
{text} url={`/memberAbility/manage/auditPrComfirm?id=${record.memberId}&validateId=${record.validateId}&preview=1`}
</EyePreview> >
{text}
</EyePreview>
) : text}
</>
), ),
}, },
{ {
...@@ -109,12 +114,16 @@ const MemberPrConfirm: React.FC<{}> = props => { ...@@ -109,12 +114,16 @@ const MemberPrConfirm: React.FC<{}> = props => {
dataIndex: 'option', dataIndex: 'option',
align: 'center', align: 'center',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<Button <>
type="link" {record.innerStatus !== MEMBER_INNER_STATUS_SUCCESS && (
onClick={() => handleJumpAudit(record)} <Button
> type="link"
确认审核结果 onClick={() => handleJumpAudit(record)}
</Button> >
确认审核结果
</Button>
)}
</>
), ),
}, },
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment