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
d2ba3a30
...
d2ba3a30e295b6fcf9b98ac0daa418b698323a0b
authored
2020-12-04 14:44:02 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
7b00e217
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
2 deletions
src/page/index.vue
src/page/tjUser.vue
src/router/index.js
src/page/index.vue
View file @
d2ba3a3
...
...
@@ -10,7 +10,7 @@
text-color=
"#fff"
active-text-color=
"#ffd04b"
>
<el-menu-item
index=
"/tool"
>
测试工具
</el-menu-item>
<el-submenu>
<el-submenu
index=
"1"
>
<template
slot=
"title"
>
常用链接
</
template
>
<el-menu-item><a
class=
"link"
href=
"http://192.168.8.113:8080/jenkins/"
target=
"_blank"
>
测试jenkins
</a></el-menu-item>
<el-menu-item><a
class=
"link"
href=
"http://192.168.8.211/www/index.php?m=project&f=task"
target=
"_blank"
>
禅道
</a></el-menu-item>
...
...
@@ -24,7 +24,10 @@
<el-menu-item><a
class=
"link"
href=
"http://sfz.uzuzuz.com/"
target=
"_blank"
>
身份证号码生成
</a></el-menu-item>
<el-menu-item><a
class=
"link"
href=
"https://www.bejson.com/"
target=
"_blank"
>
JSON格式化工具
</a></el-menu-item>
</el-submenu>
<el-menu-item
index=
"/test"
disabled
>
正在开发中
</el-menu-item>
<el-submenu
index=
"2"
>
<
template
slot=
"title"
>
统计平台
</
template
>
<el-menu-item
index=
"/tjUser"
>
线上账号
</el-menu-item>
</el-submenu>
</el-menu>
<router-view/>
</div>
...
...
src/page/tjUser.vue
0 → 100644
View file @
d2ba3a3
<
template
xmlns:el-col=
"http://www.w3.org/1999/html"
>
<div>
<br/>
<span>
统计平台-线上账号
</span>
<el-table
:data=
"tjUsers"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"username"
label=
"用户名"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"password"
label=
"密码"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"code"
label=
"机构code"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"level"
label=
"机构级别"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"type"
label=
"执行环境"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"flag"
label=
"是否有效"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"mark"
label=
"备注"
min-width=
"2"
>
</el-table-column>
</el-table>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
tjUsers
:
[]
}
},
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/tjUser?'
+
this
.
$qs
.
stringify
({
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
.
data
)
this
.
tjUsers
=
res
.
data
.
tjUsers
loading
.
close
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
();
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
}
}
}
</
script
>
src/router/index.js
View file @
d2ba3a3
...
...
@@ -6,6 +6,7 @@ import activityConfig from '@/page/activityConfig'
import
activityConfigRedis
from
'@/page/activityConfigRedis'
import
userInfo
from
'@/page/userInfo'
import
apiTest
from
'@/page/apiTest'
import
tjUser
from
'@/page/tjUser'
Vue
.
use
(
Router
)
...
...
@@ -55,6 +56,14 @@ export default new Router({
meta
:
{
title
:
'测试工具平台'
}
},
{
path
:
'/tjUser'
,
component
:
tjUser
,
name
:
'tjUser'
,
meta
:
{
title
:
'测试工具平台'
}
}
]
},
...
...
Please
register
or
sign in
to post a comment