Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
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
smart-operation
so-manage-ui
Commits
e35104df
You need to sign in or sign up before continuing.
Commit
e35104df
authored
Jul 10, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menu modify
parent
35f720d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
45 deletions
+15
-45
src/components/bg-menu.vue
src/components/bg-menu.vue
+15
-45
No files found.
src/components/bg-menu.vue
View file @
e35104df
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<!-- 菜单 -->
<!-- 菜单 -->
<div
class=
"main-menu"
>
<div
class=
"main-menu"
>
<!-- 前台菜单 -->
<!-- 前台菜单 -->
<
!--
<
div
v-if=
"fontMenu && fontMenu.length"
class=
"font-menu"
>
<div
v-if=
"fontMenu && fontMenu.length"
class=
"font-menu"
>
<div
<div
v-for=
"(item, index) in fontMenu"
v-for=
"(item, index) in fontMenu"
v-show=
"item.menuType !== 2"
v-show=
"item.menuType !== 2"
...
@@ -23,27 +23,12 @@
...
@@ -23,27 +23,12 @@
@click="menuAction(item, item)">
@click="menuAction(item, item)">
<span>
<span>
{{
item
.
menuName
}}
{{
item
.
menuName
}}
<bg-icon
v-if=
"item.children && item.children.length && item.menuType !== 1"
icon=
"#bg-ic-arrow-down"
style=
"font-size: 8px; margin-left: 3px"
/>
</span>
</span>
<div
class=
"menu-virtual"
></div>
<div
v-if=
"item.children && item.children.length"
class=
"menu-list"
>
<div
v-for=
"(it, idx) in item.children"
v-show=
"it.menuType !== 2"
:key=
"'font-children' + idx"
class=
"menu-item text_clip"
@
click.stop=
"childMenuAction(it, item)"
>
{{
it
.
menuName
}}
</div>
</div>
</div>
</div>
</div>
-->
</div>
<!-- 后管菜单 -->
<!-- 后管菜单 -->
<div
v-if=
"managerMenu && managerMenu.length"
class=
"manager-menu"
>
<
!--
<
div
v-if=
"managerMenu && managerMenu.length"
class=
"manager-menu"
>
<div
<div
v-for=
"(item, index) in managerMenu"
v-for=
"(item, index) in managerMenu"
v-show=
"item.menuType !== 2"
v-show=
"item.menuType !== 2"
...
@@ -53,24 +38,9 @@
...
@@ -53,24 +38,9 @@
@click="menuAction(item, item)">
@click="menuAction(item, item)">
<span>
<span>
{{
item
.
menuName
}}
{{
item
.
menuName
}}
<!--
<bg-icon
v-if=
"item.children && item.children.length"
icon=
"#bg-ic-arrow-down"
style=
"font-size: 8px; margin-left: 3px"
/>
-->
</span>
</span>
<!--
<div
class=
"menu-virtual"
></div>
<div
v-if=
"item.children && item.children.length"
class=
"menu-list"
>
<div
v-for=
"(it, idx) in item.children"
v-show=
"it.menuType !== 2"
:key=
"'manager-children' + idx"
class=
"menu-item text_clip"
@
click.stop=
"childMenuAction(it, item)"
>
{{
it
.
menuName
}}
</div>
</div>
-->
</div>
</div>
</div>
</div>
-->
</div>
</div>
<div
class=
"person-menu"
>
<div
class=
"person-menu"
>
...
@@ -162,26 +132,26 @@ export default {
...
@@ -162,26 +132,26 @@ export default {
fontMenu
(
state
)
{
fontMenu
(
state
)
{
let
temp
=
[];
let
temp
=
[];
state
.
menu
?.
forEach
((
e
)
=>
{
state
.
menu
?.
forEach
((
e
)
=>
{
if
(
e
.
dict_group_id
==
"
2cb4f767-fad7-44f2-afa3-f055e15dd2b6
"
)
{
if
(
e
.
dict_group_id
==
"
f2779b4a-92c9-4dd0-b4c5-6734d416f331
"
)
{
//font
//font
temp
.
push
(
e
);
temp
.
push
(
e
);
}
}
});
});
return
temp
;
return
temp
;
},
},
managerMenu
(
state
)
{
//
managerMenu(state) {
let
temp
=
[];
//
let temp = [];
state
.
menu
?.
forEach
((
e
)
=>
{
//
state.menu?.forEach((e) => {
if
(
e
.
dict_group_id
==
"
64c156e0-bfff-4bfc-a63a-56effe130a25
"
)
{
// if (e.dict_group_id == "f2779b4a-92c9-4dd0-b4c5-6734d416f331
") {
temp
.
push
(
e
);
//
temp.push(e);
}
//
}
});
//
});
return
temp
;
//
return temp;
},
//
},
systemMenu
(
state
)
{
systemMenu
(
state
)
{
let
temp
=
[];
let
temp
=
[];
state
.
menu
?.
forEach
((
e
)
=>
{
state
.
menu
?.
forEach
((
e
)
=>
{
if
(
e
.
dict_group_id
==
"
26d3903a-863e-4efc-b53e-0fb8772ddaa4
"
)
{
if
(
e
.
dict_group_id
==
"
475f4e5e-c953-469b-8314-24821a241d1d
"
)
{
temp
.
push
(
e
);
temp
.
push
(
e
);
}
}
});
});
...
...
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