Commit c4a210d8 authored by XieZhiXiong's avatar XieZhiXiong

chore: 删除过滤条件

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