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
0d294ffa
...
0d294ffa7cadb6aee29773ba525f936180f729d7
authored
2021-08-20 17:08:44 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
fb7a219e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
1 deletions
src/page/queryTjAccount.vue
src/page/tool.vue
src/router/index.js
src/page/queryTjAccount.vue
0 → 100644
View file @
0d294ff
<
template
xmlns:el-col=
"http://www.w3.org/1999/html"
>
<div>
<br/>
<el-table
:data=
"queryTjAccount"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"login_name"
label=
"账号名称"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"password"
label=
"密码"
min-width=
"2"
>
</el-table-column>
</el-table>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
login_name
:
this
.
$route
.
query
.
login_name
,
province_code
:
this
.
$route
.
query
.
province_code
,
city_code
:
this
.
$route
.
query
.
city_code
,
team_code
:
this
.
$route
.
query
.
team_code
,
location_code
:
this
.
$route
.
query
.
location_code
,
five_code
:
this
.
$route
.
query
.
five_code
,
queryTjAccount
:
[]
}
},
mounted
()
{
this
.
activity
()
},
methods
:
{
activity
()
{
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/queryTjAccount?'
+
this
.
$qs
.
stringify
({
login_name
:
this
.
login_name
,
province_code
:
this
.
province_code
,
city_code
:
this
.
city_code
,
team_code
:
this
.
team_code
,
location_code
:
this
.
location_code
,
five_code
:
this
.
five_code
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
.
data
)
this
.
queryTjAccount
=
res
.
data
loading
.
close
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
();
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
}
}
}
</
script
>
src/page/tool.vue
View file @
0d294ff
...
...
@@ -386,12 +386,18 @@
</el-select>
</el-form-item>
<el-form-item>
<el-tooltip
placement=
"
righ
t"
>
<el-tooltip
placement=
"
lef
t"
>
<div
slot=
"content"
>
默认密码:12345678a
<br/>
</div>
<el-button
round
@
click=
"tjchangeOrgAllSubmit"
>
创建账号
</el-button>
</el-tooltip>
<el-tooltip
placement=
"right"
>
<div
slot=
"content"
>
账号登录名称可以为空,支持模糊查询
<br/>
</div>
<el-button
round
@
click=
"tjqueryAccountSubmit"
>
查询账号
</el-button>
</el-tooltip>
</el-form-item>
</div>
</el-card>
...
...
@@ -1631,6 +1637,16 @@
console
.
log
(
error
);
})
},
tjqueryAccountSubmit
()
{
const
{
href
}
=
this
.
$router
.
resolve
({
name
:
'queryTjAccount'
,
query
:
{
login_name
:
this
.
createTjAccount
.
account
,
province_code
:
this
.
createTjAccount
.
provinceCode
.
toString
(),
city_code
:
this
.
createTjAccount
.
cityCode
.
toString
(),
team_code
:
this
.
createTjAccount
.
teamCode
.
toString
(),
location_code
:
this
.
createTjAccount
.
fourCode
.
toString
(),
five_code
:
this
.
createTjAccount
.
fiveCode
.
toString
()}})
window
.
open
(
href
,
'_blank'
)
},
nlpApiSubmit
()
{
const
{
href
}
=
this
.
$router
.
resolve
({
name
:
'nlpApi'
,
query
:
{
keyword
:
this
.
nlpApi
.
keyword
,
runtime
:
this
.
nlpApi
.
huanjing
.
toString
(),
platform
:
"0"
}})
...
...
src/router/index.js
View file @
0d294ff
...
...
@@ -17,6 +17,7 @@ import hadoop from '@/page/hadoop'
import
queryProvince
from
'@/page/queryProvince'
import
selectActStart
from
'@/page/selectActStart'
import
androidCode
from
'@/page/androidCode'
import
queryTjAccount
from
'@/page/queryTjAccount'
Vue
.
use
(
Router
)
...
...
@@ -100,6 +101,14 @@ export default new Router({
}
},
{
path
:
'/queryTjAccount'
,
component
:
queryTjAccount
,
name
:
'queryTjAccount'
,
meta
:
{
title
:
'测试工具平台'
}
},
{
path
:
'/tjUser'
,
component
:
tjUser
,
name
:
'tjUser'
,
...
...
Please
register
or
sign in
to post a comment