Commit 7dfb6d24 authored by XieZhiXiong's avatar XieZhiXiong

chore: 更改接口

parent b6e00a5d
...@@ -6,7 +6,7 @@ import { ...@@ -6,7 +6,7 @@ import {
} from 'antd'; } from 'antd';
import { usePageStatus } from '@/hooks/usePageStatus'; import { usePageStatus } from '@/hooks/usePageStatus';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { GetMemberAbilitySubGetResponse } from '@/services/MemberV2Api'; import { GetMemberAbilitySubDetailResponse } from '@/services/MemberV2Api';
import { import {
MEMBER_TYPE_CHANNEL_CORPORATE, MEMBER_TYPE_CHANNEL_CORPORATE,
MEMBER_TYPE_CHANNEL_INDIVIDUAL, MEMBER_TYPE_CHANNEL_INDIVIDUAL,
...@@ -19,7 +19,6 @@ import FlowRecords from '@/components/FlowRecords'; ...@@ -19,7 +19,6 @@ import FlowRecords from '@/components/FlowRecords';
import CustomizeColumn from '@/components/CustomizeColumn'; import CustomizeColumn from '@/components/CustomizeColumn';
import { import {
MEMBER_OUTER_COLUMNS, MEMBER_OUTER_COLUMNS,
MEMBER_INNER_COLUMNS,
} from '../constant'; } from '../constant';
import MemberBasicInfo from '../components/MemberBasicInfo'; import MemberBasicInfo from '../components/MemberBasicInfo';
import MemberChannelInfo from '../components/MemberChannelInfo'; import MemberChannelInfo from '../components/MemberChannelInfo';
...@@ -27,13 +26,13 @@ import PicWrap from '../components/PicWrap'; ...@@ -27,13 +26,13 @@ import PicWrap from '../components/PicWrap';
const ImportDetail: React.FC<{}> = () => { const ImportDetail: React.FC<{}> = () => {
const { id, validateId } = usePageStatus(); const { id, validateId } = usePageStatus();
const [memberInfo, setMemberInfo] = useState<GetMemberAbilitySubGetResponse>(null); const [memberInfo, setMemberInfo] = useState<GetMemberAbilitySubDetailResponse>(null);
const [infoLoading, setInfoLoading] = useState(false); const [infoLoading, setInfoLoading] = useState(false);
const getDetailedInfo = () => { const getDetailedInfo = () => {
if (id && validateId) { if (id && validateId) {
setInfoLoading(true); setInfoLoading(true);
PublicApi.getMemberAbilitySubGet({ PublicApi.getMemberAbilitySubDetail({
memberId: id, memberId: id,
validateId, validateId,
}).then(res => { }).then(res => {
...@@ -137,7 +136,7 @@ const ImportDetail: React.FC<{}> = () => { ...@@ -137,7 +136,7 @@ const ImportDetail: React.FC<{}> = () => {
<MemberChannelInfo <MemberChannelInfo
dataSource={{ dataSource={{
level: memberInfo?.channelLevelTag, level: memberInfo?.channelLevelTag,
type: memberInfo?.channelTypeName, type: memberInfo?.channelLevelTag,
areas: memberInfo?.areas, areas: memberInfo?.areas,
desc: memberInfo?.remark, desc: memberInfo?.remark,
}} }}
...@@ -180,11 +179,8 @@ const ImportDetail: React.FC<{}> = () => { ...@@ -180,11 +179,8 @@ const ImportDetail: React.FC<{}> = () => {
<Col span={24}> <Col span={24}>
<FlowRecords <FlowRecords
outerColumns={MEMBER_OUTER_COLUMNS} outerColumns={MEMBER_OUTER_COLUMNS}
innerColumns={MEMBER_INNER_COLUMNS}
outerRowkey="id" outerRowkey="id"
innerRowkey="id"
outerDataSource={memberInfo?.outerHistory} outerDataSource={memberInfo?.outerHistory}
innerDataSource={memberInfo?.innerHistory}
id="flowRecords" id="flowRecords"
/> />
</Col> </Col>
......
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