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
3e68dedb
Commit
3e68dedb
authored
Jun 08, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 跟进接口更新
parent
2d70e070
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
9 deletions
+34
-9
index.tsx
...nts/FlowRuleForm/components/PlatformConfigTable/index.tsx
+22
-3
index.tsx
...wRule/components/FlowRuleForm/components/Search/index.tsx
+3
-3
index.tsx
src/pages/member/memberFlowRule/index.tsx
+2
-2
index.tsx
src/pages/member/memberQuery/applyMember/index.tsx
+7
-1
No files found.
src/pages/member/memberFlowRule/components/FlowRuleForm/components/PlatformConfigTable/index.tsx
View file @
3e68dedb
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-28 15:06:41
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-0
1 10:59:23
* @LastEditTime: 2021-06-0
8 16:33:49
* @Description: 平台注册资料
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -29,6 +29,10 @@ interface FetchListParams {
* 当前页数
*/
pageSize
?:
number
,
/**
* 名称
*/
name
?:
string
,
}
interface
IProps
{
...
...
@@ -44,6 +48,7 @@ const PlatformConfigTable = (props: IProps) => {
}
=
props
;
const
[
page
,
setPage
]
=
useState
(
1
);
const
[
size
,
setSize
]
=
useState
(
PAGE_SIZE
);
const
[
name
,
setName
]
=
useState
(
''
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
data
,
setData
]
=
useState
({
data
:
[],
totalCount
:
0
});
...
...
@@ -63,15 +68,17 @@ const PlatformConfigTable = (props: IProps) => {
},
];
const
getMemberProcessRuleRoleConfigPage
=
async
(
params
?:
FetchListParams
)
=>
{
const
getMemberProcessRuleRoleConfigPage
=
async
(
params
:
FetchListParams
=
{}
)
=>
{
if
(
!
roleId
)
{
return
;
}
setLoading
(
true
);
const
nextName
=
params
.
name
!==
undefined
?
params
.
name
:
name
;
const
res
=
await
PublicApi
.
getMemberProcessRuleRoleConfigPage
({
roleId
:
`
${
roleId
}
`
,
current
:
`
${
params
?.
current
||
page
}
`,
pageSize: `
$
{
params
?.
pageSize
||
size
}
`,
name: nextName,
});
if (res.code === 1000) {
setData(res.data);
...
...
@@ -92,10 +99,19 @@ const PlatformConfigTable = (props: IProps) => {
});
};
const handleSearchChange = (value: string) => {
setName(value);
};
const handleSearch = (value: string) => {
getMemberProcessRuleRoleConfigPage({ current: 1, name: value })
};
return (
<>
<Row
justify="space-between"
align="middle"
style={{
marginBottom: theme['@margin-md'],
}}
...
...
@@ -115,13 +131,16 @@ const PlatformConfigTable = (props: IProps) => {
</div>
)}
labelStyle={{ width: 180 }}
style={{
paddingBottom: 0,
}}
>
<Checkbox checked disabled>使用平台注册资料(默认)</Checkbox>
</Descriptions.Item>
</Descriptions>
</Col>
<Col span={6}>
<Search value={
''} onChange={() => {}} onSearch={() => {}
} />
<Search value={
name} onChange={handleSearchChange} onSearch={handleSearch
} />
</Col>
</Row>
<PolymericTable
...
...
src/pages/member/memberFlowRule/components/FlowRuleForm/components/Search/index.tsx
View file @
3e68dedb
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-28 14:30:06
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
5-28 15:04:40
* @LastEditTime: 2021-0
6-08 16:27:02
* @Description: 搜索组件
*/
import
React
from
'react'
;
...
...
@@ -43,7 +43,6 @@ const MySearch: React.FC<IProps> = (props: IProps) => {
}
=
props
;
const
handleChange
=
(
e
)
=>
{
console
.
log
(
'e'
,
e
)
if
(
onChange
)
{
onChange
(
e
.
target
.
value
);
}
...
...
@@ -56,8 +55,9 @@ const MySearch: React.FC<IProps> = (props: IProps) => {
};
const
handleReset
=
()
=>
{
onChange
(
''
);
if
(
searchOnResetAction
)
{
onSearch
(
value
);
onSearch
(
''
);
}
if
(
onReset
)
{
onReset
();
...
...
src/pages/member/memberFlowRule/index.tsx
View file @
3e68dedb
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-27 16:01:23
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-0
1 14:35:51
* @LastEditTime: 2021-06-0
8 17:13:57
* @Description: 会员管理流程规则配置
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
...
...
@@ -121,7 +121,7 @@ const MemberFlowRule: React.FC<[]> = () => {
},
{
title
:
'操作时间'
,
dataIndex
:
'
register
Time'
,
dataIndex
:
'
create
Time'
,
},
{
title
:
'状态'
,
...
...
src/pages/member/memberQuery/applyMember/index.tsx
View file @
3e68dedb
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 16:52:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-0
7 14:12:47
* @LastEditTime: 2021-06-0
8 17:14:38
* @Description: 申请会员
*/
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
...
...
@@ -201,6 +201,12 @@ const MemberQueryApplyMember: React.FC = () => {
PublicApi
.
postMemberAbilityInfoDepositDetailUpdate
({
validateId
,
detail
:
step3
,
qualities
:
qualities
.
map
((
item
)
=>
({
expireDay
:
item
.
expireDay
,
permanent
:
item
.
permanent
[
0
]
||
0
,
url
:
item
.
file
.
url
,
name
:
item
.
file
.
name
,
})),
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
...
...
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