Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform-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
qa-platform-ui
Commits
7db198ea
Commit
7db198ea
authored
May 24, 2021
by
王晓铜
Browse files
Options
Browse Files
Download
Plain Diff
merge master
parents
d115a73b
cc5b5d6d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
0 deletions
+69
-0
genVccData.js
src/api/genVccData.js
+8
-0
index.js
src/router/index.js
+5
-0
menu.json
src/views/layout/leftAside/menu.json
+6
-0
RepayCallback.vue
src/views/vcc/RepayCallback.vue
+50
-0
No files found.
src/api/genVccData.js
View file @
7db198ea
...
...
@@ -15,3 +15,11 @@ export function vccRiskControl(paramInfo) {
params
:
paramInfo
})
}
export
function
vccRepayCallback
(
paramsInfo
)
{
return
request
({
url
:
'
/vcc/repay/callback
'
,
method
:
'
get
'
,
params
:
paramsInfo
})
}
src/router/index.js
View file @
7db198ea
...
...
@@ -27,6 +27,7 @@ import CaseList from '../views/auto/CaseList'
import
AddCase
from
'
../views/auto/AddCase
'
import
SceneList
from
'
../views/auto/SceneList
'
import
EditScene
from
'
../views/auto/EditScene
'
import
RepayCallback
from
'
../views/vcc/RepayCallback
'
Vue
.
use
(
Router
)
const
router
=
new
Router
({
...
...
@@ -157,6 +158,10 @@ const router = new Router({
{
'
path
'
:
'
/effect/cleardata
'
,
component
:
ClearData
},
{
'
path
'
:
'
/vcc/repaycallback
'
,
component
:
RepayCallback
}
]
}
...
...
src/views/layout/leftAside/menu.json
View file @
7db198ea
...
...
@@ -47,6 +47,12 @@
"title"
:
"授信回调"
,
"icon"
:
"el-icon-soccer"
,
"path"
:
"/vcc/risk"
},
{
"id"
:
5
,
"title"
:
"还款回调"
,
"icon"
:
"el-icon-baseball"
,
"path"
:
"/vcc/repaycallback"
}
]
},
...
...
src/views/vcc/RepayCallback.vue
0 → 100644
View file @
7db198ea
<
template
>
<div>
<el-card>
手机号:
<el-input
v-model=
"repayCallbackParams.phoneNo"
placeholder=
"请输入手机号"
maxlength=
"11"
></el-input>
还款结果:
<el-select
v-model=
"repayCallbackParams.result"
placeholder=
"请选择还款结果"
>
<el-option
v-for=
"item in repayResult"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
<el-button
type=
"primary"
@
click=
"doRepayCallback"
>
开始回调
</el-button>
</el-card>
</div>
</
template
>
<
script
>
import
{
vccRepayCallback
}
from
'
@/api/genVccData
'
export
default
{
data
()
{
return
{
repayCallbackParams
:
{
namespace
:
window
.
sessionStorage
.
getItem
(
'
env
'
),
phoneNo
:
''
,
result
:
''
},
repayResult
:
[{
label
:
'
还款成功
'
,
value
:
1
},
{
label
:
'
还款失败
'
,
value
:
2
}]
}
},
methods
:
{
// 还款回调
doRepayCallback
()
{
vccRepayCallback
(
this
.
repayCallbackParams
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
data
.
content
===
'
SUCCESS
'
)
{
return
this
.
$message
.
success
(
'
还款通知回调成功!
'
)
}
else
{
return
this
.
$message
.
error
(
'
还款通知回调失败!
'
)
}
})
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.el-input {
width: 200px;
margin-right: 20px;
}
.el-select {
margin-right: 20px;
}
</
style
>
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