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
ecd29344
Commit
ecd29344
authored
Apr 20, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改vcc造数据接口500的处理以及手机输入框长度限制
parent
7330e1bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
CheckData.vue
src/views/vcc/CheckData.vue
+1
-0
GenData.vue
src/views/vcc/GenData.vue
+18
-17
No files found.
src/views/vcc/CheckData.vue
View file @
ecd29344
...
...
@@ -10,6 +10,7 @@
<div
class=
"filter"
>
手机号:
<el-input
v-model=
"queryInfo.phoneNo"
maxlength=
"11"
placeholder=
"请输入手机号"
></el-input>
<!-- 身份证号码:
<el-input
...
...
src/views/vcc/GenData.vue
View file @
ecd29344
...
...
@@ -9,18 +9,10 @@
<!-- 卡片区域 -->
<el-card>
<div>
手机号:
<el-input
v-model=
"genDataParams.phoneNo"
placeholder=
"请输入手机号"
></el-input>
手机号:
<el-input
v-model=
"genDataParams.phoneNo"
placeholder=
"请输入手机号"
maxlength=
"11"
></el-input>
用户状态:
<el-select
v-model=
"genDataParams.status"
placeholder=
"请选择用户状态"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
<el-button
type=
"primary"
@
click=
"genData"
>
生成数据
</el-button>
...
...
@@ -78,7 +70,6 @@ export default {
lock
:
true
,
spinner
:
'
el-icon-loading
'
,
background
:
'
rgba(0,0,0,0.7)
'
}
}
},
...
...
@@ -96,7 +87,11 @@ export default {
}
// 开户失败校验,尾号必须为9
if
(
this
.
genDataParams
.
status
===
4
)
{
if
(
this
.
genDataParams
.
phoneNo
.
charAt
(
this
.
genDataParams
.
phoneNo
.
length
-
1
)
!==
'
9
'
)
{
if
(
this
.
genDataParams
.
phoneNo
.
charAt
(
this
.
genDataParams
.
phoneNo
.
length
-
1
)
!==
'
9
'
)
{
return
this
.
$message
.
error
(
'
开户失败对应手机尾号必须为9
'
)
}
}
...
...
@@ -107,12 +102,18 @@ export default {
formData
.
set
(
'
channel
'
,
this
.
genDataParams
.
channel
)
formData
.
set
(
'
status
'
,
this
.
genDataParams
.
status
)
const
tLoading
=
this
.
$loading
.
service
(
this
.
loadingOptions
)
genVccData
(
formData
).
then
((
resp
)
=>
{
if
(
resp
!==
null
)
{
genVccData
(
formData
)
.
then
((
resp
)
=>
{
if
(
resp
!==
null
)
{
tLoading
.
close
()
}
this
.
tableData
.
push
(
resp
.
data
.
data
)
})
.
catch
((
error
)
=>
{
console
.
log
(
error
)
tLoading
.
close
()
}
this
.
tableData
.
push
(
resp
.
data
.
data
)
})
this
.
$$message
.
error
(
'
vcc或用户中心相关服务异常,请检查!
'
)
})
}
}
}
...
...
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