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
linweijiong
jinfa-platform
Commits
7dfb6d24
Commit
7dfb6d24
authored
Jul 03, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 更改接口
parent
b6e00a5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
importDetail.tsx
src/pages/member/memberImport/importDetail.tsx
+4
-8
No files found.
src/pages/member/memberImport/importDetail.tsx
View file @
7dfb6d24
...
...
@@ -6,7 +6,7 @@ import {
}
from
'antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetMemberAbilitySub
Get
Response
}
from
'@/services/MemberV2Api'
;
import
{
GetMemberAbilitySub
Detail
Response
}
from
'@/services/MemberV2Api'
;
import
{
MEMBER_TYPE_CHANNEL_CORPORATE
,
MEMBER_TYPE_CHANNEL_INDIVIDUAL
,
...
...
@@ -19,7 +19,6 @@ import FlowRecords from '@/components/FlowRecords';
import
CustomizeColumn
from
'@/components/CustomizeColumn'
;
import
{
MEMBER_OUTER_COLUMNS
,
MEMBER_INNER_COLUMNS
,
}
from
'../constant'
;
import
MemberBasicInfo
from
'../components/MemberBasicInfo'
;
import
MemberChannelInfo
from
'../components/MemberChannelInfo'
;
...
...
@@ -27,13 +26,13 @@ import PicWrap from '../components/PicWrap';
const
ImportDetail
:
React
.
FC
<
{}
>
=
()
=>
{
const
{
id
,
validateId
}
=
usePageStatus
();
const
[
memberInfo
,
setMemberInfo
]
=
useState
<
GetMemberAbilitySub
Get
Response
>
(
null
);
const
[
memberInfo
,
setMemberInfo
]
=
useState
<
GetMemberAbilitySub
Detail
Response
>
(
null
);
const
[
infoLoading
,
setInfoLoading
]
=
useState
(
false
);
const
getDetailedInfo
=
()
=>
{
if
(
id
&&
validateId
)
{
setInfoLoading
(
true
);
PublicApi
.
getMemberAbilitySub
Get
({
PublicApi
.
getMemberAbilitySub
Detail
({
memberId
:
id
,
validateId
,
}).
then
(
res
=>
{
...
...
@@ -137,7 +136,7 @@ const ImportDetail: React.FC<{}> = () => {
<
MemberChannelInfo
dataSource=
{
{
level
:
memberInfo
?.
channelLevelTag
,
type
:
memberInfo
?.
channel
TypeName
,
type
:
memberInfo
?.
channel
LevelTag
,
areas
:
memberInfo
?.
areas
,
desc
:
memberInfo
?.
remark
,
}
}
...
...
@@ -180,11 +179,8 @@ const ImportDetail: React.FC<{}> = () => {
<
Col
span=
{
24
}
>
<
FlowRecords
outerColumns=
{
MEMBER_OUTER_COLUMNS
}
innerColumns=
{
MEMBER_INNER_COLUMNS
}
outerRowkey=
"id"
innerRowkey=
"id"
outerDataSource=
{
memberInfo
?.
outerHistory
}
innerDataSource=
{
memberInfo
?.
innerHistory
}
id=
"flowRecords"
/>
</
Col
>
...
...
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