Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project
jinfa-admin
Commits
97ac30eb
Commit
97ac30eb
authored
Sep 09, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加判断条件
parent
5b657739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
index.tsx
src/pages/member/memberPrConfirm/index.tsx
+20
-11
No files found.
src/pages/member/memberPrConfirm/index.tsx
View file @
97ac30eb
...
@@ -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
>
)
}
</>
),
),
},
},
];
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment