Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
log-platform
Commits
dfbc38d4
Commit
dfbc38d4
authored
Aug 14, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tui
parent
56ccd4d4
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
187 additions
and
114 deletions
+187
-114
log-manager-ui/admin/src/components/Header.vue
log-manager-ui/admin/src/components/Header.vue
+138
-91
log-manager-ui/admin/src/views/SSO.vue
log-manager-ui/admin/src/views/SSO.vue
+28
-15
log-manager-ui/admin/src/views/login/login.vue
log-manager-ui/admin/src/views/login/login.vue
+21
-8
No files found.
log-manager-ui/admin/src/components/Header.vue
View file @
dfbc38d4
This diff is collapsed.
Click to expand it.
log-manager-ui/admin/src/views/SSO.vue
View file @
dfbc38d4
...
...
@@ -7,23 +7,36 @@
<
script
>
export
default
{
mounted
()
{
let
token
=
this
.
$route
.
query
.
token
console
.
log
(
"
token:
"
+
token
)
if
(
token
)
{
let
token
=
this
.
$route
.
query
.
token
;
console
.
log
(
"
token:
"
+
token
);
if
(
token
)
{
window
.
sessionStorage
.
setItem
(
"
token
"
,
token
);
this
.
$router
.
push
(
'
/index
'
)
// 有token直接跳转首页
}
else
{
this
.
$route
.
query
.
sysName
?
localStorage
.
setItem
(
"
sysName
"
,
this
.
$route
.
query
.
sysName
)
:
""
;
this
.
$route
.
query
.
sysName
?
(
document
.
title
=
this
.
$route
.
query
.
sysName
)
:
""
;
this
.
$route
.
query
.
sysLogo
?
localStorage
.
setItem
(
"
sysLogo
"
,
this
.
$route
.
query
.
sysLogo
)
:
""
;
this
.
$router
.
push
(
"
/index
"
);
// 有token直接跳转首页
}
else
{
this
.
$message
({
message
:
'
没有权限,正在跳转登录页面...
'
,
center
:
true
message
:
"
没有权限,正在跳转登录页面...
"
,
center
:
true
,
});
setTimeout
(
function
(){
window
.
location
.
href
=
process
.
env
.
VUE_APP_PORTAL_URL
==
'
undefined
'
?
'
http://192.168.0.98:11072
'
:
process
.
env
.
VUE_APP_PORTAL_URL
setTimeout
(
function
()
{
window
.
location
.
href
=
process
.
env
.
VUE_APP_PORTAL_URL
==
"
undefined
"
?
"
http://192.168.0.98:11072
"
:
process
.
env
.
VUE_APP_PORTAL_URL
;
//this.$router.push('/login')
},
1000
)
}
},
1000
);
}
}
},
};
</
script
>
<
style
>
...
...
log-manager-ui/admin/src/views/login/login.vue
View file @
dfbc38d4
...
...
@@ -3,16 +3,28 @@
<
template
>
<div
class=
"page page-login flex flex-v"
>
<div
class=
"form-wrap flex flex-1"
>
<el-form
@
submit.prevent=
'onSubmit'
ref=
"form"
:model=
"form"
label-width=
"80px"
size=
"small"
>
<h1>
日志管理平台
</h1>
<el-form
@
submit.prevent=
"onSubmit"
ref=
"form"
:model=
"form"
label-width=
"80px"
size=
"small"
>
<h1>
{{
title
}}
</h1>
<el-form-item
label=
"用户名"
>
<el-input
v-model=
"form.loginName"
></el-input>
</el-form-item>
<el-form-item
label=
"密码"
>
<el-input
v-model=
"form.password"
type=
'password'
></el-input>
<el-input
v-model=
"form.password"
type=
"password"
></el-input>
</el-form-item>
<el-form-item
size=
"large"
>
<el-button
type=
"primary"
native-type=
'submit'
:loading=
'loading'
@
click=
'onSubmit'
>
登录
</el-button>
<el-button
type=
"primary"
native-type=
"submit"
:loading=
"loading"
@
click=
"onSubmit"
>
登录
</el-button
>
</el-form-item>
</el-form>
</div>
...
...
@@ -34,13 +46,14 @@ export default {
// obj.lat = 30.56;
// obj.address = "测试站点";
// obj.siteId = 2;
// this.originData.push(obj);
// this.$nextTick(() => {
// this.$refs.map1.refresh(this.originData);
// });
// window.location.href=process.env.VUE_APP_PORTAL_URL=='undefined'?'http://192.168.0.98:11072':process.env.VUE_APP_PORTAL_URL
localStorage
.
getItem
(
"
sysName
"
)
?
(
this
.
title
=
localStorage
.
getItem
(
"
sysName
"
))
:
(
this
.
title
=
"
日志管理系统
"
);
},
methods
:
{
login
()
{
...
...
@@ -91,6 +104,7 @@ export default {
loginName
:
""
,
password
:
""
,
},
title
:
""
,
};
},
};
...
...
@@ -139,4 +153,3 @@ export default {
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment