Commit ddf3100f authored by XieZhiXiong's avatar XieZhiXiong

fixbug

parent 808435e9
...@@ -53,8 +53,10 @@ const MemberMaintainDetailed: React.FC<QueryProps> = props => { ...@@ -53,8 +53,10 @@ const MemberMaintainDetailed: React.FC<QueryProps> = props => {
}; };
useEffect(() => { 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(); getBasicInfo();
}, []); }, []);
......
...@@ -4,7 +4,6 @@ import { usePageStatus } from '@/hooks/usePageStatus'; ...@@ -4,7 +4,6 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { GetMemberAbilityMaintenanceDetailLevelBasicResponse } from '@/services/MemberApi'; import { GetMemberAbilityMaintenanceDetailLevelBasicResponse } from '@/services/MemberApi';
import Info, { DataProps } from '../../components/LevelInfo'; import Info, { DataProps } from '../../components/LevelInfo';
import { reject } from 'lodash';
const LevelInfo: React.FC<{}> = () => { const LevelInfo: React.FC<{}> = () => {
const { id, validateId } = usePageStatus(); const { id, validateId } = usePageStatus();
......
...@@ -99,7 +99,7 @@ const SincerityInfo: React.FC<{}> = () => { ...@@ -99,7 +99,7 @@ const SincerityInfo: React.FC<{}> = () => {
// 投诉汇总 // 投诉汇总
const getComplaintSum = () => { const getComplaintSum = () => {
setSalesEstimateSumLoading(true); setComplainSumLoading(true);
PublicApi.getMemberAbilityMaintenanceDetailCreditComplainSummary({ PublicApi.getMemberAbilityMaintenanceDetailCreditComplainSummary({
memberId: id, memberId: id,
validateId, validateId,
...@@ -111,7 +111,7 @@ const SincerityInfo: React.FC<{}> = () => { ...@@ -111,7 +111,7 @@ const SincerityInfo: React.FC<{}> = () => {
dataSource: res.data, dataSource: res.data,
}); });
}).finally(() => { }).finally(() => {
setSalesEstimateSumLoading(false); setComplainSumLoading(false);
}); });
}; };
......
...@@ -45,15 +45,11 @@ const MemberPrConfirm: React.FC<{}> = props => { ...@@ -45,15 +45,11 @@ const MemberPrConfirm: React.FC<{}> = props => {
dataIndex: 'name', dataIndex: 'name',
align: 'center', align: 'center',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<> <EyePreview
{record.innerStatus !== MEMBER_INNER_STATUS_SUCCESS ? ( url={`/memberCenter/memberAbility/manage/auditPrComfirm?id=${record.memberId}&validateId=${record.validateId}&preview=1`}
<EyePreview >
url={`/memberCenter/memberAbility/manage/auditPrComfirm?id=${record.memberId}&validateId=${record.validateId}&preview=1`} {text}
> </EyePreview>
{text}
</EyePreview>
) : text}
</>
), ),
}, },
{ {
......
...@@ -99,7 +99,7 @@ const SincerityInfo: React.FC<{}> = () => { ...@@ -99,7 +99,7 @@ const SincerityInfo: React.FC<{}> = () => {
// 投诉汇总 // 投诉汇总
const getComplaintSum = () => { const getComplaintSum = () => {
setSalesEstimateSumLoading(true); setComplainSumLoading(true);
PublicApi.getMemberAbilityInfoDetailCreditComplainSummary({ PublicApi.getMemberAbilityInfoDetailCreditComplainSummary({
memberId: id, memberId: id,
validateId, validateId,
...@@ -111,7 +111,7 @@ const SincerityInfo: React.FC<{}> = () => { ...@@ -111,7 +111,7 @@ const SincerityInfo: React.FC<{}> = () => {
dataSource: res.data, dataSource: res.data,
}); });
}).finally(() => { }).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