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
7004544a
Commit
7004544a
authored
Jul 06, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改、变更会员信息不展示注册资料
parent
cba402d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
27 deletions
+35
-27
index.tsx
src/pages/member/memberQuery/applyMember/index.tsx
+15
-10
schema.ts
src/pages/member/memberQuery/applyMember/schema.ts
+20
-17
No files found.
src/pages/member/memberQuery/applyMember/index.tsx
View file @
7004544a
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 16:52:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-0
5 15:03:14
* @LastEditTime: 2021-07-0
6 10:22:59
* @Description: 申请会员
*/
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
...
...
@@ -93,7 +93,7 @@ const MemberQueryApplyMember: React.FC<RouteComponentProps> = (props: any) => {
const
{
route
}
=
props
;
const
{
upperMemberId
,
upperRoleId
,
validateId
}
=
usePageStatus
();
const
[
ticktack
,
setTicktack
]
=
useState
(
countDownLen
);
const
[
currenStep
,
setCurrenStep
]
=
useState
(
!
validateId
?
0
:
1
);
const
[
currenStep
,
setCurrenStep
]
=
useState
(
!
validateId
?
0
:
2
);
const
[
submitLoading
,
setSubmitLoading
]
=
useState
(
false
);
const
[
unsaved
,
setUnsaved
]
=
useState
(
false
);
const
[
depositInfo
,
setDepositInfo
]
=
useState
<
GroupItem
[]
>
([]);
...
...
@@ -102,7 +102,7 @@ const MemberQueryApplyMember: React.FC<RouteComponentProps> = (props: any) => {
const
[
agreementLoading
,
setAgreementLoading
]
=
useState
(
false
);
const
[
memberInfo
,
setMemberInfo
]
=
useState
<
MemberInfo
>
();
const
stepRef
=
useRef
(
!
validateId
?
0
:
1
);
const
stepRef
=
useRef
(
!
validateId
?
0
:
2
);
// eslint-disable-next-line no-undef
let
timer
:
NodeJS
.
Timeout
|
null
=
null
;
...
...
@@ -173,6 +173,9 @@ const MemberQueryApplyMember: React.FC<RouteComponentProps> = (props: any) => {
// 获取入库协议
const
getDepositAgreement
=
async
()
=>
{
if
(
validateId
)
{
return
;
}
setAgreementLoading
(
true
);
const
res
=
await
PublicApi
.
getManageContentNoticeFindAllByColumnType
({
columnType
:
`
${
3
}
`
,
...
...
@@ -304,13 +307,15 @@ const MemberQueryApplyMember: React.FC<RouteComponentProps> = (props: any) => {
>
保存为草稿
</Button> */
}
<
Button
onClick=
{
()
=>
{
formActions
.
dispatch
(
'onStepPrevious'
,
{})
}
}
>
上一步:确认注册信息
</
Button
>
{
!
validateId
&&
(
<
Button
onClick=
{
()
=>
{
formActions
.
dispatch
(
'onStepPrevious'
,
{})
}
}
>
上一步:确认注册信息
</
Button
>
)
}
<
Button
type=
"primary"
onClick=
{
async
()
=>
{
...
...
src/pages/member/memberQuery/applyMember/schema.ts
View file @
7004544a
...
...
@@ -85,10 +85,13 @@ const schema = (groups: GroupItem[], validateId?: number): ISchema => {
}
:
null
,
{
title
:
'确认注册信息'
,
name
:
'step2'
,
},
!
validateId
?
{
title
:
'确认注册信息'
,
name
:
'step2'
,
}
:
null
,
{
title
:
'填写入库信息'
,
name
:
'step3'
,
...
...
@@ -118,22 +121,22 @@ const schema = (groups: GroupItem[], validateId?: number): ISchema => {
},
},
},
}
},
step2
:
{
type
:
'object'
,
properties
:
{
registerInfo
:
{
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
children
:
'{{RegisterInfo}}'
},
},
},
},
}
:
{}
),
step2
:
{
type
:
'object'
,
properties
:
{
registerInfo
:
{
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
children
:
'{{RegisterInfo}}'
},
},
},
},
step3
:
depositSchema
,
step4
:
{
type
:
'object'
,
...
...
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