Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
a8586caa
Commit
a8586caa
authored
Dec 03, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加 会员管理 -> 待审核会员变更(二级)CN国际化
parent
3c5dd3dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
index.tsx
src/pages/member/memberPrVerifyChange2/index.tsx
+9
-7
verify.tsx
src/pages/member/memberPrVerifyChange2/verify.tsx
+5
-3
No files found.
src/pages/member/memberPrVerifyChange2/index.tsx
View file @
a8586caa
...
...
@@ -2,11 +2,11 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 10:26:20
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-1
1-17 18:08:09
* @LastEditTime: 2021-1
2-03 18:45:00
* @Description: 待审核会员变更(二级)
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
import
{
history
}
from
'umi'
;
import
{
history
,
useIntl
}
from
'umi'
;
import
{
Card
,
Space
,
Button
,
Modal
,
message
}
from
'antd'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
StandardTable
}
from
'god'
;
...
...
@@ -30,6 +30,8 @@ const MemberPrVerifyChange2: React.FC<{}> = props => {
const
ref
=
useRef
<
any
>
({});
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
number
[]
>
([]);
const
intl
=
useIntl
();
const
handleJumpAudit
=
record
=>
{
history
.
push
(
`/memberCenter/memberAbility/manage/memberPrVerifyChange2/verify?validateId=
${
record
.
validateId
}
`
);
};
...
...
@@ -43,7 +45,7 @@ const MemberPrVerifyChange2: React.FC<{}> = props => {
type=
"link"
onClick=
{
()
=>
handleJumpAudit
(
record
)
}
>
审核
{
intl
.
formatMessage
({
id
:
'member.actions.verify'
})
}
</
Button
>
),
},
...
...
@@ -79,13 +81,13 @@ const MemberPrVerifyChange2: React.FC<{}> = props => {
const
handleBatch
=
()
=>
{
if
(
!
selectedRowKeys
.
length
)
{
message
.
warning
(
'未选择任何会员'
);
message
.
warning
(
intl
.
formatMessage
({
id
:
'member.actions.batch.nothing'
})
);
return
;
}
confirm
({
title
:
'提示'
,
title
:
intl
.
formatMessage
({
id
:
'member.actions.verify-tip'
})
,
icon
:
<
QuestionCircleOutlined
/>,
content
:
'确定要审核通过选中的会员吗?'
,
content
:
intl
.
formatMessage
({
id
:
'member.management.memberPrVerifyChange1.query.verify-tip'
})
,
onOk
()
{
return
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
postMemberModifyGradeTwoBatch
({
...
...
@@ -129,7 +131,7 @@ const MemberPrVerifyChange2: React.FC<{}> = props => {
const
ControllerBtns
=
()
=>
(
<
Space
>
<
Button
onClick=
{
handleBatch
}
>
批量审核通过
{
intl
.
formatMessage
({
id
:
'member.actions.verify-batch'
})
}
</
Button
>
</
Space
>
);
...
...
src/pages/member/memberPrVerifyChange2/verify.tsx
View file @
a8586caa
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 10:26:37
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-1
1-17 18:08:24
* @LastEditTime: 2021-1
2-03 18:45:26
* @Description: 审核会员变更(二级)
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -10,7 +10,7 @@ import { Button } from 'antd';
import
{
CheckCircleOutlined
,
}
from
'@ant-design/icons'
;
import
{
history
}
from
'umi'
;
import
{
history
,
useIntl
}
from
'umi'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
postMemberModifyGradeTwo
,
getMemberModifyGradeTwoDetail
}
from
'@/services/MemberV2Api'
;
import
fetchDetailHoc
from
'../common/hoc/fetchDetailHoc'
;
...
...
@@ -22,6 +22,8 @@ const MemberPrVerifyChange2Verify: React.FC<{}> = () => {
const
[
visibleVerifyModal
,
setVisibleVerifyModal
]
=
useState
(
false
);
const
[
submitLoading
,
setSubmitLoading
]
=
useState
(
false
);
const
intl
=
useIntl
();
const
handleVisibleVerifyModal
=
(
flag
?)
=>
{
setVisibleVerifyModal
(
!!
flag
);
};
...
...
@@ -62,7 +64,7 @@ const MemberPrVerifyChange2Verify: React.FC<{}> = () => {
icon=
{
<
CheckCircleOutlined
/>
}
onClick=
{
()
=>
handleVisibleVerifyModal
(
true
)
}
>
单据审核
{
intl
.
formatMessage
({
id
:
'member.actions.apply.verify'
})
}
</
Button
>
<
VerifyModal
...
...
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