Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdsf-wx-app
Project
Overview
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
姜雷
cdsf-wx-app
Commits
7da03725
Commit
7da03725
authored
Oct 15, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报修接口报错提示方式
parent
88df2d71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ReprtRepair.js
src/containers/Repair/ReprtRepair.js
+6
-2
No files found.
src/containers/Repair/ReprtRepair.js
View file @
7da03725
...
@@ -201,18 +201,22 @@ class ReprtRepair extends Component {
...
@@ -201,18 +201,22 @@ class ReprtRepair extends Component {
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
const
{
data
}
=
res
;
const
{
data
}
=
res
;
if
(
data
.
code
&&
data
.
code
===
1000
)
{
const
{
data
}
=
res
;
const
{
history
}
=
this
.
props
;
const
{
history
}
=
this
.
props
;
console
.
log
(
'resetForm'
);
console
.
log
(
'resetForm'
);
this
.
resetApplyForm
();
this
.
resetApplyForm
();
// Toast.hide();
// Toast.hide();
Toast
.
success
(
data
.
msg
);
Toast
.
success
(
data
.
msg
);
history
.
replace
(
'/repair/RepairList'
);
history
.
replace
(
'/repair/RepairList'
);
}
else
{
throw
{
msg
:
data
.
msg
};
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
const
{
data
}
=
err
;
// Toast.hide();
// Toast.hide();
Toast
.
fail
(
data
.
msg
||
'提交失败!'
);
Toast
.
fail
(
err
.
msg
||
'提交失败!'
);
});
});
};
};
resetDialog
=
()
=>
{
resetDialog
=
()
=>
{
...
...
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