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
62700c80
Commit
62700c80
authored
Aug 28, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复查询页数
parent
b18bbe25
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
7 deletions
+39
-7
order.js
src/api/order.js
+9
-1
index.vue
src/views/channel/index.vue
+1
-1
index.vue
src/views/login/index.vue
+1
-1
index.vue
src/views/order/index.vue
+28
-4
No files found.
src/api/order.js
View file @
62700c80
...
...
@@ -28,6 +28,14 @@ export function cancelLoan(data) {
return
request
({
url
:
'
/order/cancel/loan
'
,
method
:
'
post
'
,
params
:
data
data
})
}
export
function
lendLoan
(
data
)
{
return
request
({
url
:
'
/order/lending
'
,
method
:
'
post
'
,
data
})
}
src/views/channel/index.vue
View file @
62700c80
...
...
@@ -96,7 +96,7 @@
</div>
<el-form
size=
"medium"
label-width=
"130px"
>
<el-form-item
label=
"域名"
>
<el-input
v-model=
"channel.addInfo.env
Url
"
disabled=
""
/>
<el-input
v-model=
"channel.addInfo.env
Path
"
disabled=
""
/>
</el-form-item>
<el-form-item
label=
"审核状态通知地址"
>
<el-input
v-model=
"channel.addInfo.approveCallBackUrl"
/>
...
...
src/views/login/index.vue
View file @
62700c80
...
...
@@ -59,7 +59,7 @@ export default {
return
{
loginForm
:
{
username
:
'
admin01
'
,
password
:
'
123
'
password
:
''
},
loginRules
:
{
// username: [{ required: true, trigger: 'blur', validator: validateUsername }],
...
...
src/views/order/index.vue
View file @
62700c80
...
...
@@ -23,9 +23,9 @@
<el-table-column
label=
"ID"
type=
"index"
align=
"center"
width=
"65"
/>
<el-table-column
sortable
label=
"订单号"
prop=
"channelOrderNumber"
align=
"center"
/>
<el-table-column
sortable
label=
"渠道号"
prop=
"channelId"
align=
"center"
/>
<el-table-column
label=
"创建时间"
prop=
"createdAt"
align=
"center"
/>
<el-table-column
label=
"订单状态"
prop=
"status"
align=
"center"
/>
<el-table-column
sortable
label=
"渠道号"
width=
"180"
prop=
"channelId"
align=
"center"
/>
<el-table-column
label=
"创建时间"
width=
"180"
prop=
"createdAt"
align=
"center"
/>
<el-table-column
label=
"订单状态"
width=
"180"
prop=
"status"
align=
"center"
/>
<el-table-column
label=
"操作"
align=
"center"
>
<template
slot-scope=
"scope"
>
...
...
@@ -101,7 +101,7 @@
</template>
<
script
>
import
{
getOrders
,
getOrderDetail
,
approve
,
cancelLoan
}
from
'
@/api/order
'
import
{
getOrders
,
getOrderDetail
,
approve
,
cancelLoan
,
lendLoan
}
from
'
@/api/order
'
import
Pagination
from
'
@/components/Pagination
'
export
default
{
...
...
@@ -150,6 +150,7 @@ export default {
delete
this
.
listQuery
[
prop
]
}
}
this
.
listQuery
.
pageNumber
=
this
.
page
-
1
getOrders
(
this
.
listQuery
).
then
(
res
=>
{
this
.
orders
=
res
.
data
.
content
this
.
count
=
res
.
data
.
totalElements
...
...
@@ -186,6 +187,29 @@ export default {
this
.
opt
=
'
贷前关单
'
this
.
dialogDeleteVisible
=
true
}
if
(
opt
.
action
===
'
pay_succ
'
)
{
this
.
handleLendLoan
(
true
)
}
if
(
opt
.
action
===
'
pay_fail
'
)
{
this
.
handleLendLoan
(
false
)
}
},
handleLendLoan
(
result
)
{
const
obj
=
{
channelOrderNumber
:
this
.
order
.
channelOrderNumber
,
channelId
:
this
.
order
.
channelId
,
result
}
lendLoan
(
obj
).
then
(()
=>
{
this
.
$notify
({
title
:
'
操作成功
'
,
type
:
'
success
'
,
duration
:
1000
})
})
},
cancelLoan
()
{
...
...
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