Commit c4a210d8 authored by XieZhiXiong's avatar XieZhiXiong

chore: 删除过滤条件

parent 330ea2b6
......@@ -24,14 +24,9 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import { PublicApi } from '@/services/api';
import { getAuth } from '@/utils/auth';
import {
MEMBER_OUTER_STATUS_TO_PLATFORM_VERIFY,
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_NOT_PASSED,
} from '@/constants/member';
import StatusTag from '@/components/StatusTag';
import { importSchema, auditModalSchema } from './schema';
import { coverColFiltersItem } from '../utils';
import { MEMBER_OUTER_STATUS_TYPE, MEMBER_STATUS_TAG_MAP } from '../constant';
import { importSchema } from './schema';
import { MEMBER_OUTER_STATUS_TYPE } from '../constant';
import styles from './index.less';
const formActions = createFormActions();
......@@ -124,20 +119,16 @@ const MemberMaintain: React.FC<[]> = () => {
render: (text: any, record: any) => <>{text}</>,
},
{
title: '注册来源/时间',
title: '注册来源',
dataIndex: 'sourceName',
render: (text, record) => (
<>
<div>{text}</div>
<div className={styles.description}>{record.registerTime}</div>
</>
),
},
{
title: '时间',
dataIndex: 'registerTime',
},
{
title: '外部状态',
dataIndex: 'outerStatusName',
filters: [],
onFilter: (value, record) => record.outerStatus === value,
align: 'center',
render: (text, record) => (
<StatusTag type={MEMBER_OUTER_STATUS_TYPE[record.outerStatus]} title={text} />
......@@ -222,22 +213,6 @@ const MemberMaintain: React.FC<[]> = () => {
status = [],
} = data;
const newColumns = columns.slice();
// filter 0 过滤掉全部选项
coverColFiltersItem(
newColumns,
'statusName',
status.map(item => ({ text: item.text, value: item.id })).filter(item => item.value !== 0),
);
coverColFiltersItem(
newColumns,
'outerStatusName',
outerStatus.map(item => ({ text: item.text, value: item.id })).filter(item => item.value !== 0),
);
setColumns(newColumns);
return {
outerStatus: outerStatus.map(item => ({ label: item.text, value: item.id })),
memberTypeId: memberTypes.map(item => ({ label: item.memberTypeName, value: item.memberTypeId })),
......
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