Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1878871d
authored
Sep 26, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
952c1bb1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
26 deletions
src/assets/css/public/common.less
src/components/menu.vue
src/assets/css/public/common.less
View file @
1878871d
...
...
@@ -188,6 +188,7 @@ body {
.pagex {
padding: 20px;
min-height: 500px;
}
.zdypop {
...
...
src/components/menu.vue
View file @
1878871d
...
...
@@ -6,10 +6,10 @@
<div
class=
"tab-box fl"
ref=
"scrollbox"
>
<!--tab 栏目-->
<div
class=
"item-boxs row verCenter"
ref=
"scrollboxinner"
>
<a
class=
"item first row rowCenter verCenter"
href=
"/#/"
:class=
"
{'act':$route.path=='/'
,'scrollsg':rpcg
}">
<a
class=
"item first row rowCenter verCenter"
href=
"/#/"
:class=
"
{'act':$route.path=='/'}">
<font
class=
"fl"
>
概况
</font>
</a>
<a
class=
"item row rowCenter verCenter"
:class=
"
{'
scrollsg':rpcg,'
act':(JSON.stringify(item)==JSON.stringify({path: $route.path,title: $route.meta.title,query:$route.query}))}" @click="tabUrl(item)" v-for="item in tabs">
<a
class=
"item row rowCenter verCenter"
:class=
"
{'act':(JSON.stringify(item)==JSON.stringify({path: $route.path,title: $route.meta.title,query:$route.query}))}" @click="tabUrl(item)" v-for="item in tabs">
<font
class=
"fl"
>
{{
item
.
title
}}
</font>
<span
class=
"icon iconfont fl"
@
click
.
stop=
"closetab(item.path)"
>
</span>
</a>
...
...
@@ -186,9 +186,9 @@ export default {
name
:
'menus'
,
props
:
{},
created
()
{
var
self
=
this
this
.
getData
();
this
.
tabUi
()
var
self
=
this
window
.
onresize
=
function
()
{
self
.
tabUi
()
};
...
...
@@ -210,7 +210,6 @@ export default {
tabSure
:
""
,
tabs
:
""
,
width
:
""
,
rpcg
:
false
,
dialogVisible
:
false
,
ruleForm
:
{
old_password
:
''
,
...
...
@@ -267,13 +266,14 @@ export default {
}
},
tabUi
()
{
let
tab_arr
=
sessionStorage
.
getItem
(
'tabs'
)
if
(
tab_arr
.
length
>=
9
)
{
this
.
$nextTick
(()
=>
{
if
(
this
.
$refs
.
scrollboxinner
.
clientWidth
>
this
.
$refs
.
scrollbox
.
clientWidth
)
{
this
.
rpcg
=
true
}
else
{
this
.
rpcg
=
false
document
.
querySelector
(
'.tab-box'
).
scrollLeft
=
12000000
;
}
})
}
},
tabUrl
(
item
)
{
this
.
$router
.
push
({
...
...
@@ -518,26 +518,10 @@ export default {
display
:
none
;
}
}
}
&
.scrollsg
{
&.act
{
&::after
{
content
:
""
;
position
:
absolute
;
bottom
:
-2px
;
width
:
32px
;
height
:
5px
;
background
:
#1969F9
;
left
:
50%
;
margin-left
:
-22px
;
}
}
&
.first
{
&::after
{
margin-left
:
-15px
;
&
:hover
{
.iconfont
{
color
:
#1969f9
;
}
}
}
...
...
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