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
4bfa2ed0
Commit
4bfa2ed0
authored
Sep 03, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核结果
parent
86f80425
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
19 deletions
+34
-19
request.js
src/utils/request.js
+21
-13
index.vue
src/views/order/index.vue
+13
-6
No files found.
src/utils/request.js
View file @
4bfa2ed0
...
...
@@ -42,21 +42,29 @@ service.interceptors.response.use(
// 50008:非法的token; 50012:其他客户端登录了; 500003:Token 过期了;
if
(
res
.
code
===
501002
||
res
.
code
===
500003
)
{
MessageBox
.
confirm
(
'
你已被登出,可以取消继续留在该页面,或者重新登录
'
,
'
确定登出
'
,
{
confirmButtonText
:
'
重新登录
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}
).
then
(()
=>
{
Message
({
message
:
'
token失效,你已被登出
'
,
type
:
'
warning
'
,
duration
:
1000
})
store
.
dispatch
(
'
FedLogOut
'
).
then
(()
=>
{
location
.
reload
()
// 为了重新实例化vue-router对象 避免bug
})
})
// MessageBox.confirm(
// '你已被登出,可以取消继续留在该页面,或者重新登录',
// '确定登出',
// {
// confirmButtonText: '重新登录',
// cancelButtonText: '取消',
// type: 'warning'
// }
// ).then(() => {
// store.dispatch('FedLogOut').then(() => {
// location.reload() // 为了重新实例化vue-router对象 避免bug
// })
// })
}
return
Promise
.
reject
(
'
error
'
)
//
return Promise.reject('error')
}
else
{
return
response
.
data
}
...
...
src/views/order/index.vue
View file @
4bfa2ed0
...
...
@@ -17,7 +17,6 @@
size=
"medium"
fit
highlight-current-row
style=
"margin-bottom:20px"
@
current-change=
"handleCurrentChange"
>
<el-table-column
label=
"ID"
type=
"index"
align=
"center"
width=
"65"
/>
...
...
@@ -227,11 +226,19 @@ export default {
this
.
approveData
.
channelOrderNumber
=
this
.
order
.
channelOrderNumber
this
.
approveData
.
isPass
=
data
approve
(
this
.
approveData
).
then
(
res
=>
{
if
(
res
.
data
)
{
this
.
$notify
({
title
:
'
审核完毕
'
,
title
:
res
.
message
,
type
:
'
success
'
,
duration
:
1000
})
}
else
{
this
.
$notify
({
title
:
res
.
message
,
type
:
'
error
'
,
duration
:
2000
})
}
this
.
getOrders
()
})
this
.
dialogFormVisible
=
false
...
...
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