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
447c30cf
Commit
447c30cf
authored
Jul 29, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复搜索框显示,业务员查询问题
parent
fb3360ff
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
index.tsx
src/components/ModalTable/index.tsx
+2
-2
reset.less
src/global/styles/reset.less
+8
-0
detail.tsx
src/pages/channel/memberList/detail.tsx
+2
-2
No files found.
src/components/ModalTable/index.tsx
View file @
447c30cf
...
@@ -121,8 +121,8 @@ const ModalTable:React.FC<ModalTableProps> = (props) => {
...
@@ -121,8 +121,8 @@ const ModalTable:React.FC<ModalTableProps> = (props) => {
tableType=
'small'
tableType=
'small'
currentRef=
{
selfRef
}
currentRef=
{
selfRef
}
formRender=
{
(
child
,
ps
)
=>
<
Row
justify=
'space-between'
style=
{
{
marginBottom
:
16
}
}
>
formRender=
{
(
child
,
ps
)
=>
<
Row
justify=
'space-between'
style=
{
{
marginBottom
:
16
}
}
>
<
Col
s
pan=
{
22
}
style=
{
{
zIndex
:
99
}
}
>
{
child
}
</
Col
>
<
Col
s
tyle=
{
{
zIndex
:
99
,
width
:
'calc(100% - 130px)'
}
}
>
{
child
}
</
Col
>
<
Col
s
pan=
{
2
}
style=
{
{
marginTop
:
4
}
}
>
{
ps
}
</
Col
>
<
Col
s
tyle=
{
{
marginTop
:
4
,
minWidth
:
128
}
}
>
{
ps
}
</
Col
>
</
Row
>
}
</
Row
>
}
formilyProps=
{
formilyProps=
{
modalType
===
'none'
?
null
:
{
modalType
===
'none'
?
null
:
{
...
...
src/global/styles/reset.less
View file @
447c30cf
...
@@ -306,3 +306,11 @@
...
@@ -306,3 +306,11 @@
.ant-table-filter-column {
.ant-table-filter-column {
justify-content: center !important;
justify-content: center !important;
}
}
// 修复所有输入框不对称搜索
.ant-input-group {
.ant-input {
padding-top: 6px;
padding-bottom: 6px;
}
}
src/pages/channel/memberList/detail.tsx
View file @
447c30cf
...
@@ -88,7 +88,7 @@ const MemberDetail: React.FC<{}> = () => {
...
@@ -88,7 +88,7 @@ const MemberDetail: React.FC<{}> = () => {
if
(
!
keywordName
)
{
if
(
!
keywordName
)
{
return
tableData
return
tableData
}
}
return
tableData
.
filter
(
v
=>
v
.
memberId
.
toString
().
includes
(
keywordName
))
return
tableData
.
filter
(
v
=>
v
.
name
.
toString
().
includes
(
keywordName
))
},
[
tableData
,
keywordName
])
},
[
tableData
,
keywordName
])
const
fetchMemberSaleChannel
=
async
(
params
)
=>
{
const
fetchMemberSaleChannel
=
async
(
params
)
=>
{
const
userInfo
=
formAction
.
getFieldValue
(
'userId'
)
const
userInfo
=
formAction
.
getFieldValue
(
'userId'
)
...
@@ -503,7 +503,7 @@ const MemberDetail: React.FC<{}> = () => {
...
@@ -503,7 +503,7 @@ const MemberDetail: React.FC<{}> = () => {
<
Button
type=
'default'
onClick=
{
()
=>
unBindMember
()
}
disabled=
{
pageStatus
===
PageStatus
.
PREVIEW
}
>
批量解除绑定关系
</
Button
>
<
Button
type=
'default'
onClick=
{
()
=>
unBindMember
()
}
disabled=
{
pageStatus
===
PageStatus
.
PREVIEW
}
>
批量解除绑定关系
</
Button
>
</
Col
>
</
Col
>
<
Col
style=
{
{
display
:
'flex'
}
}
>
<
Col
style=
{
{
display
:
'flex'
}
}
>
<
Input
.
Search
value=
{
keywordName
}
onChange=
{
e
=>
setKeywordName
(
e
.
target
.
value
)
}
onPressEnter=
{
handleSearchChannel
}
/>
<
Input
.
Search
placeholder=
'请搜索会员名称'
value=
{
keywordName
}
onChange=
{
e
=>
setKeywordName
(
e
.
target
.
value
)
}
onPressEnter=
{
handleSearchChannel
}
/>
<
Button
type=
'default'
style=
{
{
marginLeft
:
20
}
}
onClick=
{
()
=>
setKeywordName
(
''
)
}
>
重置
</
Button
>
<
Button
type=
'default'
style=
{
{
marginLeft
:
20
}
}
onClick=
{
()
=>
setKeywordName
(
''
)
}
>
重置
</
Button
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
...
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