Commit 45967a9f authored by XieZhiXiong's avatar XieZhiXiong

完善代码

parent 9c488c57
......@@ -246,7 +246,7 @@ const AddMember: React.FC<any> = props => {
return {};
};
const useAsyncLinkageEffect = () => {
const useBusinessEffects = () => {
const linkage = useLinkageUtils();
// 间接触发根据会员类型
......@@ -421,7 +421,7 @@ const AddMember: React.FC<any> = props => {
getPageitemsBasic,
);
useAsyncLinkageEffect();
useBusinessEffects();
onFormInputChange$().subscribe(() => {
if (!unsaved) {
......
......@@ -14,13 +14,13 @@ import {
MEMBER_OUTER_STATUS,
} from '@/constants';
import NiceForm from '@/components/NiceForm';
import AvatarWrap from '@/components/AvatarWrap';
import { auditModalSchema } from './schema';
import {
MEMBER_STATUS_TAG_MAP,
MEMBER_INNER_STATUS_BADGE_COLOR,
MEMBER_OUTER_STATUS_TYPE,
} from '../constant';
import HeadInfo from '../components/HeadInfo';
import AuditProcess from '../components/AuditProcess';
import BasicInfo from '../components/BasicInfo';
import StatusTag from '../components/StatusTag';
......@@ -84,11 +84,14 @@ const Frozen: React.FC<{}> = () => {
style={{ padding: '0' }}
onBack={() => history.goBack()}
title={
<HeadInfo
<AvatarWrap
info={{
name: basicInfo?.name,
level: 1,
}}
extra={(
<span style={{ fontSize: 12, fontWeight: 'normal' }}>{basicInfo?.levelTag}</span>
)}
/>
}
extra={(
......
......@@ -15,8 +15,8 @@ import {
MEMBER_TYPE_CHANNEL_INDIVIDUAL,
} from '@/constants';
import NiceForm from '@/components/NiceForm';
import AvatarWrap from '@/components/AvatarWrap';
import { auditModalSchema } from './schema';
import HeadInfo from '../components/HeadInfo';
import AuditProcess from '../components/AuditProcess';
import BasicInfo from '../components/BasicInfo';
import StatusTag from '../components/StatusTag';
......@@ -60,7 +60,7 @@ const MaintainDetail: React.FC<{}> = () => {
remark: values.remark || '',
}).then(res => {
if (res.code === 1000) {
this.getDetailed();
getDetailed();
}
});
};
......@@ -74,11 +74,13 @@ const MaintainDetail: React.FC<{}> = () => {
style={{ padding: '0' }}
onBack={() => history.goBack()}
title={
<HeadInfo
<AvatarWrap
info={{
name: detailed?.name,
level: 1,
}}
extra={(
<span style={{ fontSize: 12, fontWeight: 'normal' }}>{detailed?.levelTag}</span>
)}
/>
}
extra={(
......
......@@ -19,7 +19,6 @@ import NiceForm from '@/components/NiceForm';
import AvatarWrap from '@/components/AvatarWrap';
import { MEMBER_INNER_STATUS_BADGE_COLOR, MEMBER_STATUS_TAG_MAP, MEMBER_OUTER_STATUS_TYPE } from '../constant';
import { auditModalSchema } from '../schema/auditSchema';
import HeadInfo from '../components/HeadInfo';
import AuditProcess from '../components/AuditProcess';
import BasicInfo from '../components/BasicInfo';
import StatusTag from '../components/StatusTag';
......
......@@ -7,11 +7,11 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import { PublicApi } from '@/services/api';
import { GetMemberAbilityInfoDetailBasicResponse } from '@/services/MemberApi';
import { IMemberModule } from '@/module/memberModule';
import AvatarWrap from '@/components/AvatarWrap';
import {
MEMBER_STATUS_TAG_MAP,
MEMBER_OUTER_STATUS_TYPE,
} from '../../constant';
import HeadInfo from '../../components/HeadInfo';
import StatusTag from '../../components/StatusTag';
import styles from './index.less';
......@@ -120,11 +120,13 @@ const MemberQueryDetailed: React.FC<QueryProps> = props => {
style={{ padding: '0' }}
onBack={() => history.goBack()}
title={
<HeadInfo
<AvatarWrap
info={{
name: basicInfo?.name,
level: 1,
}}
extra={(
<span style={{ fontSize: 12, fontWeight: 'normal' }}>{basicInfo?.levelTag}</span>
)}
/>
}
>
......
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