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
c4d31448
Commit
c4d31448
authored
Dec 29, 2020
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增查数据
parent
e66ca64e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
1 deletion
+116
-1
checkVccData.js
src/api/checkVccData.js
+9
-0
index.js
src/router/index.js
+5
-0
Home.vue
src/views/Home.vue
+6
-0
CheckData.vue
src/views/Vcc/CheckData.vue
+95
-0
GetData.vue
src/views/Vcc/GetData.vue
+1
-1
No files found.
src/api/checkVccData.js
0 → 100644
View file @
c4d31448
import
request
from
'
@/utils/request
'
export
function
queryUserData
(
queryInfo
)
{
return
request
({
url
:
'
/vcc/checkData
'
,
method
:
'
get
'
,
params
:
queryInfo
})
}
src/router/index.js
View file @
c4d31448
...
@@ -11,6 +11,7 @@ import XyqbGenLoanData from '../views/Xyqb/GenLoanData'
...
@@ -11,6 +11,7 @@ import XyqbGenLoanData from '../views/Xyqb/GenLoanData'
import
XyqbGetLoanData
from
'
../views/Xyqb/GetLoanData
'
import
XyqbGetLoanData
from
'
../views/Xyqb/GetLoanData
'
import
VccGetData
from
'
../views/Vcc/GetData
'
import
VccGetData
from
'
../views/Vcc/GetData
'
import
VccGenData
from
'
../views/Vcc/GenData
'
import
VccGenData
from
'
../views/Vcc/GenData
'
import
VccCheckData
from
'
../views/Vcc/CheckData
'
Vue
.
use
(
Router
)
Vue
.
use
(
Router
)
...
@@ -64,6 +65,10 @@ const router = new Router({
...
@@ -64,6 +65,10 @@ const router = new Router({
{
{
'
path
'
:
'
/vcc/genData
'
,
'
path
'
:
'
/vcc/genData
'
,
component
:
VccGenData
component
:
VccGenData
},
{
'
path
'
:
'
/vcc/checkData
'
,
component
:
VccCheckData
}
}
]
]
}
}
...
...
src/views/Home.vue
View file @
c4d31448
...
@@ -61,6 +61,12 @@
...
@@ -61,6 +61,12 @@
<i
class=
"el-icon-s-shop"
></i>
<i
class=
"el-icon-s-shop"
></i>
<span>
消费分期
</span>
<span>
消费分期
</span>
</
template
>
</
template
>
<el-menu-item
index=
"/vcc/checkData"
@
click=
"saveNavState('/vcc/checkData')"
>
<
template
slot=
"title"
>
<i
class=
"el-icon-pear"
></i>
<span>
查数据
</span>
</
template
>
</el-menu-item>
<el-menu-item
index=
"/vcc/getData"
@
click=
"saveNavState('/vcc/getData')"
>
<el-menu-item
index=
"/vcc/getData"
@
click=
"saveNavState('/vcc/getData')"
>
<
template
slot=
"title"
>
<
template
slot=
"title"
>
<i
class=
"el-icon-grape"
></i>
<i
class=
"el-icon-grape"
></i>
...
...
src/views/Vcc/CheckData.vue
0 → 100644
View file @
c4d31448
<
template
>
<div>
<!-- 头部导航栏 -->
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item>
消费分期
</el-breadcrumb-item>
<el-breadcrumb-item>
查询单个数据
</el-breadcrumb-item>
</el-breadcrumb>
<el-card>
<div
class=
"filter"
>
手机号:
<el-input
v-model=
"queryInfo.phoneNo"
placeholder=
"请输入手机号"
></el-input>
<!-- 身份证号码:
<el-input
v-model=
"idCardNo"
placeholder=
"请输入身份证号码"
></el-input>
-->
<el-button
type=
"primary"
@
click=
"checkData"
>
查询
</el-button>
</div>
<el-table
:data=
"dataTable"
border
style=
"width: 100%"
>
<el-table-column
prop=
"phoneNo"
label=
"手机号"
width=
"120px"
></el-table-column>
<el-table-column
prop=
"userId"
label=
"userId"
width=
"100px"
></el-table-column>
<el-table-column
prop=
"uuid"
label=
"uuid"
width=
"320px"
></el-table-column>
<el-table-column
prop=
"registeredFrom"
label=
"注册渠道"
width=
"100px"
></el-table-column>
<el-table-column
prop=
"nextApplyTime"
label=
"过期时间"
width=
"180px"
></el-table-column>
<el-table-column
prop=
"createdAt"
label=
"创建时间"
width=
"180px"
></el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
></el-table-column>
</el-table>
</el-card>
</div>
</
template
>
<
script
>
import
{
queryUserData
}
from
'
@/api/checkVccData
'
export
default
{
data
()
{
return
{
idCardNo
:
''
,
queryInfo
:
{
namespace
:
window
.
sessionStorage
.
getItem
(
'
env
'
),
phoneNo
:
''
},
dataTable
:
[]
}
},
methods
:
{
checkData
()
{
// 手机号长度限制
if
(
this
.
queryInfo
.
phoneNo
===
''
)
{
return
this
.
$message
.
error
(
'
手机号不能为空!
'
)
}
if
(
this
.
queryInfo
.
phoneNo
.
length
!==
11
)
{
return
this
.
$message
.
error
(
'
手机号长度不对!
'
)
}
queryUserData
(
this
.
queryInfo
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
code
===
500
)
{
return
this
.
$message
.
error
(
resp
.
data
.
data
)
}
this
.
dataTable
.
push
(
resp
.
data
.
data
)
})
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.el-input {
width: 200px;
margin-right: 20px;
}
.el-table {
margin-top: 20px;
}
</
style
>
src/views/Vcc/GetData.vue
View file @
c4d31448
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<!-- 头部导航栏 -->
<!-- 头部导航栏 -->
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item>
消费分期
</el-breadcrumb-item>
<el-breadcrumb-item>
消费分期
</el-breadcrumb-item>
<el-breadcrumb-item>
已有数据查询
</el-breadcrumb-item>
<el-breadcrumb-item>
获取特定数据
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
<el-card>
<el-card>
...
...
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