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
f33020f0
...
f33020f0b9ff6ee36cce505f58be62af606aa77d
authored
2022-12-01 15:01:48 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
51d1b989
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
120 additions
and
35 deletions
src/page/tool.vue
src/page/tool.vue
View file @
f33020f
...
...
@@ -411,16 +411,19 @@
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"
apiTest"
:model=
"apiTest
"
label-width=
"0px"
>
<el-form
ref=
"
bizData"
:model=
"bizData
"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
接口访问测试
</span>
<span>
加密
&
解密biz_data
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-select
v-model=
"apiTest.path"
placeholder=
"请选择接口服务"
>
<el-input
placeholder=
"请输入biz_data"
v-model=
"bizData.myData"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"bizData.type"
placeholder=
"请选择算法类型"
>
<el-option
v-for=
"item in
apiTestPath
options"
v-for=
"item in
bizData
options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
...
...
@@ -428,18 +431,9 @@
</el-select>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入method"
v-model=
"apiTest.method"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入biz_data"
v-model=
"apiTest.biz_data"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入手机号,如果token已失效,请在app进行登录"
v-model=
"apiTest.phone"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"apiTest.huanjing"
placeholder=
"请选择执行环境"
>
<el-select
v-model=
"bizData.version"
placeholder=
"请选择算法版本"
>
<el-option
v-for=
"item in
apiTest
options"
v-for=
"item in
bizDataversion
options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
...
...
@@ -448,11 +442,20 @@
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"
apiTestSubmit"
>
调用接口
</el-button>
<el-button
round
@
click=
"
bizDataSubmit"
>
提交
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
<el-dialog
title=
"biz_data"
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<span>
{{
mybizdata
}}
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
v-clipboard:copy=
"JSON.stringify(mybizdata)"
v-clipboard:success=
"onCopy"
@
click=
"dialogVisible = false"
>
点击复制
</el-button>
</span>
</el-dialog>
</el-col>
</el-row>
<el-row
style=
"margin-bottom: 15px;"
>
...
...
@@ -653,19 +656,16 @@
</el-dialog>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"
bizData"
:model=
"bizData
"
label-width=
"0px"
>
<el-form
ref=
"
apiTest"
:model=
"apiTest
"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
加密
&
解密biz_data
</span>
<span>
接口访问测试
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"请输入biz_data"
v-model=
"bizData.myData"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"bizData.type"
placeholder=
"请选择算法类型"
>
<el-select
v-model=
"apiTest.path"
placeholder=
"请选择接口服务"
>
<el-option
v-for=
"item in
bizData
options"
v-for=
"item in
apiTestPath
options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
...
...
@@ -673,9 +673,18 @@
</el-select>
</el-form-item>
<el-form-item>
<el-select
v-model=
"bizData.version"
placeholder=
"请选择算法版本"
>
<el-input
placeholder=
"请输入method"
v-model=
"apiTest.method"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入biz_data"
v-model=
"apiTest.biz_data"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入手机号,如果token已失效,请在app进行登录"
v-model=
"apiTest.phone"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"apiTest.huanjing"
placeholder=
"请选择执行环境"
>
<el-option
v-for=
"item in
bizDataversion
options"
v-for=
"item in
apiTest
options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
...
...
@@ -684,20 +693,11 @@
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"
bizDataSubmit"
>
提交
</el-button>
<el-button
round
@
click=
"
apiTestSubmit"
>
调用接口
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
<el-dialog
title=
"biz_data"
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<span>
{{
mybizdata
}}
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
v-clipboard:copy=
"JSON.stringify(mybizdata)"
v-clipboard:success=
"onCopy"
@
click=
"dialogVisible = false"
>
点击复制
</el-button>
</span>
</el-dialog>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"testHouLi"
:model=
"testHouLi"
label-width=
"0px"
>
...
...
@@ -854,6 +854,37 @@
</el-card>
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"createPhoneVisit"
:model=
"createPhoneVisit"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
创建电话工单
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"请输入代理人手机号"
v-model=
"createPhoneVisit.agentPhone"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入拜访客户手机号"
v-model=
"createPhoneVisit.visitPhone"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"createPhoneVisit.type"
placeholder=
"请选择联系结果"
>
<el-option
v-for=
"item in createPhoneVisittypeoptions"
: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=
"createPhoneVisitSubmit"
>
提交
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
</el-row>
</div>
</
template
>
...
...
@@ -954,6 +985,18 @@
}],
dialogVisible
:
false
,
mybizdata
:
''
,
createPhoneVisit
:
{
agentPhone
:
''
,
visitPhone
:
''
,
type
:
[]
},
createPhoneVisittypeoptions
:
[{
value
:
'1'
,
label
:
'已沟通'
},
{
value
:
'0'
,
label
:
'未联系上'
}],
smsCode
:
{
phone
:
''
,
code
:
1111
...
...
@@ -1545,6 +1588,48 @@
});
})
},
createPhoneVisitSubmit
()
{
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/createPhoneVisit?'
+
this
.
$qs
.
stringify
({
agentPhone
:
this
.
createPhoneVisit
.
agentPhone
,
visitPhone
:
this
.
createPhoneVisit
.
visitPhone
,
type
:
this
.
createPhoneVisit
.
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'
});
})
},
smsCodeSubmit
()
{
let
config
=
{
headers
:
{
...
...
Please
register
or
sign in
to post a comment