Commit ddf3100f authored by XieZhiXiong's avatar XieZhiXiong

fixbug

parent 808435e9
......@@ -53,8 +53,10 @@ const MemberMaintainDetailed: React.FC<QueryProps> = props => {
};
useEffect(() => {
const { match } = props;
const url = match.url === '/' ? '' : match.url;
// 手动重定向到基础信息页,防止查询字符串被弄掉
history.replace(`/memberCenter/memberAbility/manage/maintainDetail/basicInfo?id=${id}&validateId=${validateId}`);
history.replace(`${url}/basicInfo?id=${id}&validateId=${validateId}`);
getBasicInfo();
}, []);
......
......@@ -4,7 +4,6 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import { PublicApi } from '@/services/api';
import { GetMemberAbilityMaintenanceDetailLevelBasicResponse } from '@/services/MemberApi';
import Info, { DataProps } from '../../components/LevelInfo';
import { reject } from 'lodash';
const LevelInfo: React.FC<{}> = () => {
const { id, validateId } = usePageStatus();
......
......@@ -99,7 +99,7 @@ const SincerityInfo: React.FC<{}> = () => {
// 投诉汇总
const getComplaintSum = () => {
setSalesEstimateSumLoading(true);
setComplainSumLoading(true);
PublicApi.getMemberAbilityMaintenanceDetailCreditComplainSummary({
memberId: id,
validateId,
......@@ -111,7 +111,7 @@ const SincerityInfo: React.FC<{}> = () => {
dataSource: res.data,
});
}).finally(() => {
setSalesEstimateSumLoading(false);
setComplainSumLoading(false);
});
};
......
......@@ -45,15 +45,11 @@ const MemberPrConfirm: React.FC<{}> = props => {
dataIndex: 'name',
align: 'center',
render: (text: any, record: any) => (
<>
{record.innerStatus !== MEMBER_INNER_STATUS_SUCCESS ? (
<EyePreview
url={`/memberCenter/memberAbility/manage/auditPrComfirm?id=${record.memberId}&validateId=${record.validateId}&preview=1`}
>
{text}
</EyePreview>
) : text}
</>
),
},
{
......
......@@ -99,7 +99,7 @@ const SincerityInfo: React.FC<{}> = () => {
// 投诉汇总
const getComplaintSum = () => {
setSalesEstimateSumLoading(true);
setComplainSumLoading(true);
PublicApi.getMemberAbilityInfoDetailCreditComplainSummary({
memberId: id,
validateId,
......@@ -111,7 +111,7 @@ const SincerityInfo: React.FC<{}> = () => {
dataSource: res.data,
});
}).finally(() => {
setSalesEstimateSumLoading(false);
setComplainSumLoading(false);
});
};
......
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