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
3c451c72
...
3c451c72656b1046a95c8355067be4727e35bcbb
authored
2021-03-22 17:13:38 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
80969031
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
1 deletions
src/page/toolAime.vue
src/page/toolAime.vue
View file @
3c451c7
...
...
@@ -101,7 +101,7 @@
<el-option
v-for=
"item in nlpTestCaseMyplatformOptions"
:key=
"item.value"
:label=
"item.label"
s
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
...
...
@@ -124,6 +124,43 @@
</el-card>
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"bizData"
:model=
"bizData"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
加密
&
解密biz_data
</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-option
v-for=
"item in bizDataoptions"
: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=
"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>
</div>
</
template
>
...
...
@@ -200,6 +237,19 @@
value
:
'1'
,
label
:
'线上环境'
}],
bizData
:
{
myData
:
''
,
type
:
[]
},
bizDataoptions
:
[{
value
:
'0'
,
label
:
'加密'
},
{
value
:
'1'
,
label
:
'解密'
}],
dialogVisible
:
false
,
mybizdata
:
''
,
}
},
mounted
()
{
...
...
@@ -317,6 +367,28 @@
const
{
href
}
=
this
.
$router
.
resolve
({
name
:
'nlpApi'
,
query
:
{
keyword
:
this
.
nlpApi
.
keyword
,
runtime
:
this
.
nlpApi
.
huanjing
.
toString
(),
platform
:
"1"
}})
window
.
open
(
href
,
'_blank'
)
},
bizDataSubmit
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/bizDataAime?'
+
this
.
$qs
.
stringify
({
biz_data
:
this
.
bizData
.
myData
,
type
:
this
.
bizData
.
type
.
toString
()
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
mybizdata
=
res
.
data
;
this
.
dialogVisible
=
true
;
}).
catch
(
error
=>
{
console
.
log
(
error
);
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
}
}
}
...
...
Please
register
or
sign in
to post a comment