Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
c4a210d8
Commit
c4a210d8
authored
Jul 09, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 删除过滤条件
parent
330ea2b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
32 deletions
+7
-32
index.tsx
src/pages/member/memberImport/index.tsx
+7
-32
No files found.
src/pages/member/memberImport/index.tsx
View file @
c4a210d8
...
...
@@ -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
})),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment