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
8c385007
Commit
8c385007
authored
Sep 10, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次风控
parent
73cb4504
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
25 deletions
+44
-25
order.js
src/api/order.js
+8
-0
index.vue
src/views/channel/index.vue
+23
-22
index.vue
src/views/order/index.vue
+13
-3
No files found.
src/api/order.js
View file @
8c385007
...
...
@@ -16,6 +16,14 @@ export function approve(data) {
})
}
export
function
secondAudit
(
query
)
{
return
request
({
url
:
'
/order/secondAudit
'
,
method
:
'
get
'
,
params
:
query
})
}
export
function
getOrderHistory
(
query
)
{
return
request
({
url
:
'
/order/history/status
'
,
...
...
src/views/channel/index.vue
View file @
8c385007
...
...
@@ -6,11 +6,11 @@
<el-option
v-for=
"item in channels"
:key=
"item.channelId"
:label=
"item.channelName"
:value=
"item.channelId"
/>
</el-select>
<el-button
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"getChannels"
>
查询
</el-button>
<!--
<el-button
class=
"filter-item"
style=
"margin-left: 10px;"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
-->
<el-button
v-permission=
"['admin']"
:disabled=
"!createBool"
class=
"filter-item"
style=
"margin-left: 10px;"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
</div>
<el-table
v-show=
"createBool"
ref=
"myTable"
:data=
"channels"
border
...
...
@@ -37,17 +37,17 @@
</el-table-column>
-->
</el-table>
<pagination
v-show=
"count>0"
:total=
"count"
:page.sync=
"page"
:limit.sync=
"listQuery.pageSize"
@
pagination=
"getChannels"
/>
<pagination
v-show=
"c
reateBool && c
ount>0"
:total=
"count"
:page.sync=
"page"
:limit.sync=
"listQuery.pageSize"
@
pagination=
"getChannels"
/>
<el-card
v-show=
"channel.addInfo"
class=
"box-card"
>
<el-card
v-permission=
"['admin']"
v-show=
"channel.basicInfo.channelId"
class=
"box-card"
style=
"margin-bottom:20px;float:left;width:45%;margin-right:1%"
>
<el-card
v-permission=
"['admin']"
class=
"box-card"
style=
"margin-bottom:20px;float:left;width:45%;margin-right:1%"
>
<div
slot=
"header"
>
<span>
基础配置
</span>
</div>
<el-form
:inline=
"true"
size=
"medium"
>
<el-form-item
label=
"渠道号"
style=
"width:30%"
>
<el-input
v-model=
"channel.basicInfo.channelId"
disabled=
"
"
/>
<el-input
v-model=
"channel.basicInfo.channelId"
:disabled=
"createBool
"
/>
</el-form-item>
<el-form-item
label=
"渠道code"
style=
"width:30%"
>
<el-input
v-model=
"channel.basicInfo.channelCode"
/>
...
...
@@ -80,10 +80,10 @@
<el-form
size=
"medium"
label-width=
"50px"
>
<el-form-item
label=
"AES"
>
<el-input
v-model=
"channel.basicInfo.aesKey"
:autosize=
"{ minRows:
2
, maxRows: 4}"
type=
"textarea"
/>
<el-input
v-model=
"channel.basicInfo.aesKey"
:autosize=
"{ minRows:
1
, maxRows: 4}"
type=
"textarea"
/>
</el-form-item>
<el-form-item
label=
"MD5"
>
<el-input
v-model=
"channel.basicInfo.md5Key"
:autosize=
"{ minRows:
2
, maxRows: 4}"
type=
"textarea"
/>
<el-input
v-model=
"channel.basicInfo.md5Key"
:autosize=
"{ minRows:
1
, maxRows: 4}"
type=
"textarea"
/>
</el-form-item>
</el-form>
</el-card>
...
...
@@ -96,7 +96,7 @@
</div>
<el-form
size=
"medium"
label-width=
"130px"
>
<el-form-item
label=
"域名"
>
<el-input
v-model=
"channel.addInfo.envPath"
disabled=
"
"
/>
<el-input
v-model=
"channel.addInfo.envPath"
:disabled=
"createBool
"
/>
</el-form-item>
<el-form-item
label=
"审核状态通知地址"
>
<el-input
v-model=
"channel.addInfo.approveCallBackUrl"
/>
...
...
@@ -142,7 +142,8 @@ export default {
channel
:
{
basicInfo
:
{},
addInfo
:
{}},
count
:
1
,
page
:
1
,
roles
:
undefined
roles
:
undefined
,
createBool
:
true
}
},
created
()
{
...
...
@@ -160,6 +161,7 @@ export default {
// this.channels = []
// this.count = 1
getChannels
(
this
.
listQuery
).
then
(
res
=>
{
this
.
createBool
=
true
if
(
res
.
data
)
{
this
.
channels
=
res
.
data
.
content
this
.
count
=
res
.
data
.
totalElements
...
...
@@ -172,11 +174,13 @@ export default {
handleCurrentChange
(
val
)
{
this
.
channel
=
{
basicInfo
:
{},
addInfo
:
{}}
if
(
val
)
{
getChannelDetail
({
channelId
:
val
.
channelId
}).
then
(
res
=>
{
if
(
res
.
data
)
{
this
.
channel
=
res
.
data
}
})
}
},
boxStyle
()
{
...
...
@@ -184,14 +188,10 @@ export default {
return
boxStyle
},
// handleCreate() {
// this.resetTemp()
// this.dialogStatus = 'create'
// this.dialogFormVisible = true
// this.$nextTick(() => {
// this.$refs['dataForm'].clearValidate()
// })
// },
handleCreate
()
{
this
.
createBool
=
false
this
.
channel
=
{
basicInfo
:
{},
addInfo
:
{}}
},
savevData
()
{
if
(
!
this
.
roles
.
includes
(
'
admin
'
))
{
...
...
@@ -205,6 +205,7 @@ export default {
duration
:
1000
})
this
.
handleCurrentChange
(
this
.
channel
.
basicInfo
)
this
.
getChannels
()
})
}
}
...
...
src/views/order/index.vue
View file @
8c385007
...
...
@@ -143,7 +143,7 @@
</template>
<
script
>
import
{
getOrders
,
getOrderHistory
,
approve
,
cancelLoan
,
lendLoan
,
callbackRecord
,
logHistory
}
from
'
@/api/order
'
import
{
getOrders
,
getOrderHistory
,
approve
,
cancelLoan
,
lendLoan
,
callbackRecord
,
logHistory
,
secondAudit
}
from
'
@/api/order
'
import
Pagination
from
'
@/components/Pagination
'
import
store
from
'
@/store
'
...
...
@@ -233,8 +233,7 @@ export default {
this
.
dialogTitle
=
'
审核操作
'
this
.
dialogFormVisible
=
true
this
.
approveData
=
{
fundType
:
'
1
'
,
isPass
:
'
0
'
fundType
:
'
0
'
}
}
...
...
@@ -250,6 +249,17 @@ export default {
if
(
opt
.
action
===
'
pay_fail
'
)
{
this
.
handleLendLoan
(
false
)
}
if
(
opt
.
action
===
'
second_audit
'
)
{
secondAudit
({
channelOrderNumber
:
this
.
order
.
channelOrderNumber
}).
then
(()
=>
{
this
.
$notify
({
title
:
'
操作成功
'
,
type
:
'
success
'
,
duration
:
1000
})
})
this
.
getOrders
()
}
},
handleLendLoan
(
result
)
{
...
...
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