Commit 7004544a authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改、变更会员信息不展示注册资料

parent cba402d5
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 16:52:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-05 15:03:14
* @LastEditTime: 2021-07-06 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 () => {
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment