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
shenshaokai
jinfa-platform
Commits
9ed43168
Commit
9ed43168
authored
Jul 06, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 业务员管理优化
parent
d9500dd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
detail.tsx
src/pages/channel/memberList/detail.tsx
+13
-3
index.tsx
src/pages/channel/memberList/index.tsx
+2
-2
No files found.
src/pages/channel/memberList/detail.tsx
View file @
9ed43168
...
...
@@ -83,6 +83,13 @@ const MemberDetail: React.FC<{}> = () => {
const
{
pageStatus
,
id
}
=
usePageStatus
()
const
[
tableData
,
setTableData
]
=
useState
<
any
[]
>
([])
const
[
keywordName
,
setKeywordName
]
=
useState
<
string
>
(
''
)
const
fliterTableData
=
useMemo
(()
=>
{
if
(
!
keywordName
)
{
return
tableData
}
return
tableData
.
filter
(
v
=>
v
.
memberId
.
toString
().
includes
(
keywordName
))
},
[
tableData
,
keywordName
])
const
fetchMemberSaleChannel
=
async
(
params
)
=>
{
const
userInfo
=
formAction
.
getFieldValue
(
'userId'
)
if
(
userInfo
&&
userInfo
.
length
>
0
)
{
...
...
@@ -120,6 +127,9 @@ const MemberDetail: React.FC<{}> = () => {
})
}
const
handleSearchChannel
=
()
=>
{
}
useEffect
(()
=>
{
staticData
.
current
=
realRowCtl
.
selectedRowKeys
},
[
realRowCtl
.
selectedRowKeys
])
...
...
@@ -493,8 +503,8 @@ const MemberDetail: React.FC<{}> = () => {
<
Button
type=
'default'
onClick=
{
()
=>
unBindMember
()
}
disabled=
{
pageStatus
===
PageStatus
.
PREVIEW
}
>
批量解除绑定关系
</
Button
>
</
Col
>
<
Col
style=
{
{
display
:
'flex'
}
}
>
<
Input
.
Search
value=
{
keywordName
}
onChange=
{
e
=>
setKeywordName
(
e
.
target
.
value
)
}
onPressEnter=
{
fetchSale
Channel
}
/>
<
Button
type=
'default'
style=
{
{
marginLeft
:
20
}
}
>
重置
</
Button
>
<
Input
.
Search
value=
{
keywordName
}
onChange=
{
e
=>
setKeywordName
(
e
.
target
.
value
)
}
onPressEnter=
{
handleSearch
Channel
}
/>
<
Button
type=
'default'
style=
{
{
marginLeft
:
20
}
}
onClick=
{
()
=>
setKeywordName
(
''
)
}
>
重置
</
Button
>
</
Col
>
</
Row
>
<
Button
block
type=
'dashed'
onClick=
{
()
=>
setMemberVisible
(
true
)
}
disabled=
{
pageStatus
===
PageStatus
.
PREVIEW
}
>
选择待绑定渠道会员
</
Button
>
...
...
@@ -503,7 +513,7 @@ const MemberDetail: React.FC<{}> = () => {
rowSelection=
{
pageStatus
!==
PageStatus
.
PREVIEW
&&
realRowSelection
}
rowKey=
'relationId'
tableProps=
{
{
dataSource
:
t
ableData
dataSource
:
fliterT
ableData
}
}
/>
</
TabsItem
>
...
...
src/pages/channel/memberList/index.tsx
View file @
9ed43168
...
...
@@ -35,9 +35,9 @@ const ChannelMember: React.FC<{}> = () => {
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'登录账号'
,
dataIndex
:
'
userId
'
,
dataIndex
:
'
account
'
,
align
:
'center'
,
key
:
'
userId
'
,
key
:
'
account
'
,
},
{
title
:
'姓名'
,
...
...
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