Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
d1228b67
Commit
d1228b67
authored
Apr 16, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix: 修复选择会员搜索会员名称没效果的问题
parent
a2be297f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
85 deletions
+4
-85
detail.tsx
src/pages/ruleSettingManage/payStrategy/detail.tsx
+4
-85
No files found.
src/pages/ruleSettingManage/payStrategy/detail.tsx
View file @
d1228b67
...
...
@@ -9,16 +9,13 @@ import React, { useEffect, useState, useRef } from 'react'
import
{
Card
,
Button
,
message
}
from
'antd'
import
{
PlusOutlined
,
SaveOutlined
}
from
'@ant-design/icons'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
StandardTable
}
from
'god'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
EyePreview
from
'@/components/EyePreview'
import
{
createFormActions
,
ISchema
}
from
'@formily/antd'
import
PayForm
from
'../components/PayForm'
import
ModalTable
from
'@/components/ModalTable'
import
Search
from
'@/components/NiceForm/components/Search'
import
SearchSelect
from
'@/components/NiceForm/components/SearchSelect'
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
import
{
useInitValue
}
from
'@/formSchema/effects/useInitValue'
import
{
strategyDetailTab
}
from
'../schema'
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
...
...
@@ -28,15 +25,9 @@ import { history } from 'umi'
import
{
findItemAndDelete
}
from
'@/utils'
import
{
GlobalConfig
}
from
'@/global/config'
import
{
PublicApi
}
from
'@/services/api'
import
style
from
'./index.less'
import
{
Submit
}
from
'@formily/antd'
import
{
Input
,
NumberPicker
,
FormTab
,
FormMegaLayout
,
Select
,
ArrayTable
}
from
'@formily/antd-components'
const
payActions
=
createFormActions
()
/**
...
...
@@ -45,11 +36,9 @@ const payActions = createFormActions()
* @return {type}
*/
const
fetchMemberList
=
async
(
params
)
=>
{
console
.
log
(
params
,
10086
)
return
new
Promise
(
resolve
=>
{
PublicApi
.
getPayGetMembers
(
params
).
then
(
res
=>
{
res
.
data
.
data
.
forEach
((
item
:
any
)
=>
{
item
.
name
=
item
.
memberName
})
resolve
(
res
.
data
)
})
})
...
...
@@ -235,85 +224,15 @@ const PaySetting: React.FC<{}> = () => {
roleId
:
[...
a
,
...
roleList
],
level
:
[...
a
,
...
leverList
]
}
// setfilterParams({...filterParams,roleList:[...a,...roleList],levelList:[...a,...leverList],memberTypeList: [...a,...memberTypeList] })
}
}
const
formSearch
:
ISchema
=
{
type
:
'object'
,
properties
:
{
name
:
{
type
:
'string'
,
"x-component"
:
'Search'
,
"x-component-props"
:
{
placeholder
:
'请输入会员名称'
}
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'flex-layout'
,
'x-component-props'
:
{
rowStyle
:
{
flexWrap
:
'nowrap'
,
style
:
{
marginRight
:
0
}
},
colStyle
:
{
marginTop
:
20
,
},
},
properties
:
{
memberTypeId
:
{
type
:
'string'
,
enum
:
filterParams
.
memberTypeList
,
"x-component-props"
:
{
placeholder
:
'会员类型'
,
style
:
{
width
:
160
}
}
},
roleId
:
{
type
:
'string'
,
enum
:
filterParams
.
roleList
,
"x-component-props"
:
{
placeholder
:
'会员角色'
,
style
:
{
width
:
160
}
}
},
level
:
{
type
:
'string'
,
enum
:
filterParams
.
levelList
,
"x-component-props"
:
{
placeholder
:
'会员等级'
,
style
:
{
width
:
160
}
}
},
submit
:
{
"x-component"
:
'Submit'
,
"x-mega-props"
:
{
span
:
1
},
"x-component-props"
:
{
children
:
'查询'
}
}
}
}
}
}
// 会员弹框高级筛选
const
formMember
:
ISchema
=
{
type
:
'object'
,
properties
:
{
n
ame
:
{
memberN
ame
:
{
type
:
'string'
,
'x-component'
:
'ModalSearch'
,
'x-component-props'
:
{
...
...
@@ -480,7 +399,7 @@ const PaySetting: React.FC<{}> = () => {
columns=
{
columnsSetMember
}
rowSelection=
{
memberRowSelection
}
fetchTableData=
{
params
=>
fetchMemberList
(
params
)
}
// modalType='payStrategyFilter
'
modalType=
'none
'
formilyProps=
{
{
ctx
:
{
...
...
@@ -490,7 +409,7 @@ const PaySetting: React.FC<{}> = () => {
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'
n
ame'
,
'
memberN
ame'
,
FORM_FILTER_PATH
,
);
useAsyncInitSelect
(
...
...
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