Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
ka-op-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
ka-op-ui
Commits
80bdb7cb
Commit
80bdb7cb
authored
Sep 23, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
透传后端msg
parent
b29cc606
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
request.js
src/utils/request.js
+2
-2
index.vue
src/views/order/index.vue
+18
-10
No files found.
src/utils/request.js
View file @
80bdb7cb
...
@@ -43,8 +43,8 @@ service.interceptors.response.use(
...
@@ -43,8 +43,8 @@ service.interceptors.response.use(
duration
:
5
*
1000
duration
:
5
*
1000
})
})
// 5000
8:非法的token; 50012:其他客户端登录了; 5000
03:Token 过期了;
// 500003:Token 过期了;
if
(
res
.
code
===
50
1002
||
res
.
code
===
50
0003
)
{
if
(
res
.
code
===
500003
)
{
store
.
dispatch
(
'
FedLogOut
'
).
then
(()
=>
{
store
.
dispatch
(
'
FedLogOut
'
).
then
(()
=>
{
location
.
reload
()
// 为了重新实例化vue-router对象 避免bug
location
.
reload
()
// 为了重新实例化vue-router对象 避免bug
})
})
...
...
src/views/order/index.vue
View file @
80bdb7cb
...
@@ -255,12 +255,20 @@ export default {
...
@@ -255,12 +255,20 @@ export default {
}
}
if
(
opt
.
action
===
'
second_audit
'
)
{
if
(
opt
.
action
===
'
second_audit
'
)
{
secondAudit
({
channelOrderNumber
:
this
.
order
.
channelOrderNumber
}).
then
(()
=>
{
secondAudit
({
channelOrderNumber
:
this
.
order
.
channelOrderNumber
}).
then
((
res
)
=>
{
this
.
$notify
({
if
(
res
.
data
)
{
title
:
'
操作成功
'
,
this
.
$notify
({
type
:
'
success
'
,
message
:
res
.
message
,
duration
:
2000
type
:
'
success
'
,
})
duration
:
2000
})
}
else
{
this
.
$notify
({
message
:
res
.
message
,
type
:
'
error
'
,
duration
:
2000
})
}
this
.
getOrders
()
this
.
getOrders
()
})
})
}
}
...
@@ -274,7 +282,7 @@ export default {
...
@@ -274,7 +282,7 @@ export default {
}
}
lendLoan
(
obj
).
then
(()
=>
{
lendLoan
(
obj
).
then
(()
=>
{
this
.
$notify
({
this
.
$notify
({
titl
e
:
'
操作成功
'
,
messag
e
:
'
操作成功
'
,
type
:
'
success
'
,
type
:
'
success
'
,
duration
:
2000
duration
:
2000
})
})
...
@@ -285,7 +293,7 @@ export default {
...
@@ -285,7 +293,7 @@ export default {
cancelLoan
()
{
cancelLoan
()
{
cancelLoan
({
channelOrderNumber
:
this
.
order
.
channelOrderNumber
}).
then
(()
=>
{
cancelLoan
({
channelOrderNumber
:
this
.
order
.
channelOrderNumber
}).
then
(()
=>
{
this
.
$notify
({
this
.
$notify
({
titl
e
:
'
关单完毕
'
,
messag
e
:
'
关单完毕
'
,
type
:
'
success
'
,
type
:
'
success
'
,
duration
:
2000
duration
:
2000
})
})
...
@@ -300,13 +308,13 @@ export default {
...
@@ -300,13 +308,13 @@ export default {
approve
(
this
.
approveData
).
then
(
res
=>
{
approve
(
this
.
approveData
).
then
(
res
=>
{
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
$notify
({
this
.
$notify
({
titl
e
:
res
.
message
,
messag
e
:
res
.
message
,
type
:
'
success
'
,
type
:
'
success
'
,
duration
:
5000
duration
:
5000
})
})
}
else
{
}
else
{
this
.
$notify
({
this
.
$notify
({
titl
e
:
res
.
message
,
messag
e
:
res
.
message
,
type
:
'
error
'
,
type
:
'
error
'
,
duration
:
5000
duration
:
5000
})
})
...
...
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