Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
d00bec8c
Commit
d00bec8c
authored
Jul 12, 2018
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bigfix: fix step from page
parent
f23ea6b8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
19 deletions
+7
-19
src/models/form.js
src/models/form.js
+1
-1
src/pages/Forms/StepForm/Step1.js
src/pages/Forms/StepForm/Step1.js
+1
-1
src/pages/Forms/StepForm/Step2.js
src/pages/Forms/StepForm/Step2.js
+1
-1
src/pages/Forms/StepForm/Step3.js
src/pages/Forms/StepForm/Step3.js
+1
-1
src/pages/Forms/StepForm/index.js
src/pages/Forms/StepForm/index.js
+3
-15
No files found.
src/models/form.js
View file @
d00bec8c
...
...
@@ -25,7 +25,7 @@ export default {
type
:
'
saveStepFormData
'
,
payload
,
});
yield
put
(
routerRedux
.
push
(
'
/
Forms/StepForm/Step3
'
));
yield
put
(
routerRedux
.
push
(
'
/
form/step-form/result
'
));
},
*
submitAdvancedForm
({
payload
},
{
call
})
{
yield
call
(
fakeSubmitForm
,
payload
);
...
...
src/pages/Forms/StepForm/Step1.js
View file @
d00bec8c
...
...
@@ -27,7 +27,7 @@ class Step1 extends React.PureComponent {
type
:
'
form/saveStepFormData
'
,
payload
:
values
,
});
dispatch
(
routerRedux
.
push
(
'
/
Forms/StepForm/Step2
'
));
dispatch
(
routerRedux
.
push
(
'
/
form/step-form/confirm
'
));
}
});
};
...
...
src/pages/Forms/StepForm/Step2.js
View file @
d00bec8c
...
...
@@ -20,7 +20,7 @@ class Step2 extends React.PureComponent {
const
{
form
,
data
,
dispatch
,
submitting
}
=
this
.
props
;
const
{
getFieldDecorator
,
validateFields
}
=
form
;
const
onPrev
=
()
=>
{
dispatch
(
routerRedux
.
push
(
'
/
Forms/StepForm
'
));
dispatch
(
routerRedux
.
push
(
'
/
form/step-form/info
'
));
};
const
onValidateForm
=
e
=>
{
e
.
preventDefault
();
...
...
src/pages/Forms/StepForm/Step3.js
View file @
d00bec8c
...
...
@@ -9,7 +9,7 @@ class Step3 extends React.PureComponent {
render
()
{
const
{
dispatch
,
data
}
=
this
.
props
;
const
onFinish
=
()
=>
{
dispatch
(
routerRedux
.
push
(
'
/
Forms/StepForm
'
));
dispatch
(
routerRedux
.
push
(
'
/
form/step-form/info
'
));
};
const
information
=
(
<
div
className
=
{
styles
.
information
}
>
...
...
src/pages/Forms/StepForm/index.js
View file @
d00bec8c
...
...
@@ -14,11 +14,11 @@ export default class StepForm extends PureComponent {
const
{
pathname
}
=
location
;
const
pathList
=
pathname
.
split
(
'
/
'
);
switch
(
pathList
[
pathList
.
length
-
1
])
{
case
'
Step1
'
:
case
'
info
'
:
return
0
;
case
'
Step2
'
:
case
'
confirm
'
:
return
1
;
case
'
Step3
'
:
case
'
result
'
:
return
2
;
default
:
return
0
;
...
...
@@ -41,18 +41,6 @@ export default class StepForm extends PureComponent {
<
Step
title
=
"
完成
"
/>
<
/Steps
>
{
children
}
{
/* <Switch>
{getRoutes(match.path, routerData).map(item => (
<Route
key={item.key}
path={item.path}
component={item.component}
exact={item.exact}
/>
))}
<Redirect exact from="/form/step-form" to="/form/step-form/info" />
<Redirect to="/exception/404" />
</Switch> */
}
<
/Fragment
>
<
/Card
>
<
/PageHeaderLayout
>
...
...
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