Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gavel-erp-vue
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
gavel-erp-vue
Commits
3f7e0fda
Commit
3f7e0fda
authored
Mar 24, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
layout显示异常调整
parent
5729f00a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
5 deletions
+32
-5
Logo.vue
src/layout/components/Sidebar/Logo.vue
+10
-2
changeProject.vue
src/layout/components/changeProject.vue
+16
-2
index.vue
src/views/iot/RealChartConfigure/index.vue
+6
-1
No files found.
src/layout/components/Sidebar/Logo.vue
View file @
3f7e0fda
...
...
@@ -3,11 +3,11 @@
<transition
name=
"sidebarLogoFade"
>
<router-link
v-if=
"collapse"
key=
"collapse"
class=
"sidebar-logo-link"
to=
"/"
>
<img
v-if=
"logo"
:src=
"logo"
class=
"sidebar-logo"
/>
<h1
v-else
class=
"sidebar-title
"
:style=
"
{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{
title
}}
</h1>
<h1
v-else
class=
"sidebar-title logo-title
"
:style=
"
{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{
title
}}
</h1>
</router-link>
<router-link
v-else
key=
"expand"
class=
"sidebar-logo-link"
to=
"/"
>
<img
v-if=
"logo"
:src=
"logo"
class=
"sidebar-logo"
/>
<h1
class=
"sidebar-title"
:style=
"
{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{
title
}}
</h1>
<h1
class=
"sidebar-title
logo-title
"
:style=
"
{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{
title
}}
</h1>
</router-link>
</transition>
</div>
...
...
@@ -58,6 +58,14 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.logo-title
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
max-width
:
160px
;
font-size
:
14px
;
// display: inline-block;
}
.sidebarLogoFade-enter-active
{
transition
:
opacity
1
.5s
;
}
...
...
src/layout/components/changeProject.vue
View file @
3f7e0fda
<
template
>
<el-menu
:default-active=
"activeIndex"
class=
"el-menu-demo"
mode=
"horizontal"
@
select=
"handleSelect"
>
<el-submenu
index=
"1"
@
mouseover
.
native
.
once=
"titClick"
>
<template
slot=
"title"
>
{{
systemName
||
customName
}}
</
template
>
<template
slot=
"title"
>
<span
class=
"cp-title"
>
{{
systemName
||
customName
}}
</span>
</
template
>
<el-menu-item
:key=
"item.id"
:index=
"index"
v-for=
"(item,index) in systemInfo"
>
{{item.name}}
</el-menu-item>
</el-submenu>
</el-menu>
...
...
@@ -138,9 +138,23 @@
}
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.el-submenu__title
{
height
:
50px
!
important
;
line-height
:
50px
!
important
;
}
.el-menu-item
{
font-size
:
14px
!
important
;
line-height
:
20px
!
important
;
height
:
20px
!
important
;
text-align
:
left
;
text-decoration
:
underline
;
}
.cp-title
{
width
:
180px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
inline-block
;
}
</
style
>
src/views/iot/RealChartConfigure/index.vue
View file @
3f7e0fda
...
...
@@ -84,6 +84,8 @@
},
tooltip
:
{
trigger
:
'axis'
,
className
:
'echarts-tooltip'
,
appendToBody
:
true
,
formatter
:
function
(
params
)
{
var
text
=
new
Date
(
params
[
0
][
"value"
][
0
]).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
"<br />"
;
...
...
@@ -239,6 +241,9 @@
}
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
::v-deep
.echarts-tooltip
{
z-index
:
999999999
!
important
;
}
/* 可以在这里添加样式 */
</
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