Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
0a5db88f
Commit
0a5db88f
authored
Jun 03, 2019
by
zhengjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实时控制台页面优化
parent
30285d73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
src/views/monitor/log/msg.vue
+14
-7
No files found.
src/views/monitor/log/msg.vue
View file @
0a5db88f
<
template
>
<div
:style=
"'min-width:' + width"
class=
"container"
>
<div
class=
"container"
>
<el-tooltip
:content=
"content"
class=
"lock item"
effect=
"dark"
placement=
"left"
>
<el-button
type=
"info"
size=
"mini"
circle
@
click=
"doLock"
><svg-icon
:icon-class=
"ico"
/></el-button>
</el-tooltip>
...
...
@@ -28,8 +28,7 @@ export default {
data
()
{
return
{
ico
:
'unlock'
,
unlock
:
true
,
content
:
'锁定滚动条'
,
height
:
document
.
documentElement
.
clientHeight
-
140
+
'px;'
,
width
:
document
.
documentElement
.
clientWidth
-
210
+
'px;'
,
height
:
'0px'
,
data
:
[{
name
:
'elAdmin-'
,
timestamp
:
new
Date
(),
threadName
:
'system-prompt-message'
,
level
:
'INFO'
,
className
:
'me.zhengjie.AppRun'
+
' :'
,
body
:
'Welcome, no log output'
}],
// level
INFO
:
'#0000ff'
,
WARN
:
'#FFFF00'
,
ERROR
:
'#FF0000'
,
DEBUG
:
'#DEA000'
...
...
@@ -38,7 +37,10 @@ export default {
computed
:
{
...
mapGetters
([
'socketApi'
])
]),
tagsView
()
{
return
this
.
$store
.
state
.
settings
.
tagsView
}
},
// 监听控制滚动条
watch
:
{
...
...
@@ -51,13 +53,19 @@ export default {
}
})
}
},
tagsView
(
newVal
,
oldVal
)
{
this
.
height
=
this
.
tagsView
?
document
.
documentElement
.
clientHeight
-
95
+
'px;'
:
document
.
documentElement
.
clientHeight
-
65
+
'px;'
}
},
created
()
{
this
.
height
=
this
.
tagsView
?
document
.
documentElement
.
clientHeight
-
95
+
'px;'
:
document
.
documentElement
.
clientHeight
-
65
+
'px;'
},
mounted
:
function
()
{
this
.
initWebSocket
()
const
that
=
this
window
.
onresize
=
function
temp
()
{
that
.
height
=
document
.
documentElement
.
clientHeight
-
94.
5
+
'px;'
that
.
height
=
that
.
tagsView
?
document
.
documentElement
.
clientHeight
-
95
+
'px;'
:
document
.
documentElement
.
clientHeight
-
6
5
+
'px;'
}
},
beforeDestroy
:
function
()
{
...
...
@@ -129,8 +137,7 @@ export default {
}
.container
{
width
:
100%
;
margin
:
5px
margin
:
2px
}
.container
.console
{
...
...
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