Commit 7dfb6d24 authored by XieZhiXiong's avatar XieZhiXiong

chore: 更改接口

parent b6e00a5d
......@@ -6,7 +6,7 @@ import {
} from 'antd';
import { usePageStatus } from '@/hooks/usePageStatus';
import { PublicApi } from '@/services/api';
import { GetMemberAbilitySubGetResponse } from '@/services/MemberV2Api';
import { GetMemberAbilitySubDetailResponse } 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<GetMemberAbilitySubGetResponse>(null);
const [memberInfo, setMemberInfo] = useState<GetMemberAbilitySubDetailResponse>(null);
const [infoLoading, setInfoLoading] = useState(false);
const getDetailedInfo = () => {
if (id && validateId) {
setInfoLoading(true);
PublicApi.getMemberAbilitySubGet({
PublicApi.getMemberAbilitySubDetail({
memberId: id,
validateId,
}).then(res => {
......@@ -137,7 +136,7 @@ const ImportDetail: React.FC<{}> = () => {
<MemberChannelInfo
dataSource={{
level: memberInfo?.channelLevelTag,
type: memberInfo?.channelTypeName,
type: memberInfo?.channelLevelTag,
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>
......
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