Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
br-client
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
22980c16
...
22980c1696aaea8ba4434aa1b2ab883468b20e0e
authored
2023-02-09 15:10:01 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
a46ac785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
88 additions
and
0 deletions
src/page/tool.vue
src/page/tool.vue
View file @
22980c1
...
...
@@ -916,6 +916,37 @@
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"create1053TestData"
:model=
"create1053TestData"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
创建1053测试数据
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"请输入代理人手机号"
v-model=
"create1053TestData.agentPhone"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入自动生成数据的个数,最大取值
<
=10" v-model="create1053TestData.count" clearable>
</el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"create1053TestData.type"
placeholder=
"请选择数据类型"
>
<el-option
v-for=
"item in create1053TestDatatypeoptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"create1053TestDataSubmit"
>
提交
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"queryTiXian"
:model=
"queryTiXian"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
...
...
@@ -1050,6 +1081,21 @@
value
:
'0'
,
label
:
'未联系上'
}],
create1053TestData
:
{
agentPhone
:
''
,
count
:
''
,
type
:
[]
},
create1053TestDatatypeoptions
:
[{
value
:
'0'
,
label
:
'电话约访'
},
{
value
:
'1'
,
label
:
'面见碰一碰'
},
{
value
:
'2'
,
label
:
'AI分享'
}],
smsCode
:
{
phone
:
''
,
code
:
1111
...
...
@@ -1700,6 +1746,48 @@
});
})
},
create1053TestDataSubmit
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'加载中...'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/create1053Tool?'
+
this
.
$qs
.
stringify
({
agentPhone
:
this
.
create1053TestData
.
agentPhone
,
count
:
this
.
create1053TestData
.
count
,
type
:
this
.
create1053TestData
.
type
.
toString
()
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
==
'成功'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'数据创建成功'
,
type
:
'success'
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
data
,
type
:
'error'
});
}
loading
.
close
()
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
()
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
},
addPhoneAuthorSubmit
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
...
...
Please
register
or
sign in
to post a comment