Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dxgaqgl-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
李苏
dxgaqgl-vue
Commits
75b3ef00
Commit
75b3ef00
authored
May 21, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
0036102d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
11 deletions
+21
-11
favicon.png
public/favicon.png
+0
-0
logo.png
src/assets/logo/logo.png
+0
-0
Logo.vue
src/layout/components/Sidebar/Logo.vue
+1
-1
SidebarItem.vue
src/layout/components/Sidebar/SidebarItem.vue
+6
-8
index.js
src/router/index.js
+14
-2
No files found.
public/favicon.png
View replaced file @
0036102d
View file @
75b3ef00
41.4 KB
|
W:
|
H:
65.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/logo/logo.png
View replaced file @
0036102d
View file @
75b3ef00
41.4 KB
|
W:
|
H:
65.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/layout/components/Sidebar/Logo.vue
View file @
75b3ef00
...
...
@@ -27,7 +27,7 @@ export default {
},
watch
:{
title
(){
}
},
...
...
src/layout/components/Sidebar/SidebarItem.vue
View file @
75b3ef00
...
...
@@ -2,7 +2,7 @@
<div
v-if=
"!item.hidden"
>
<template
v-if=
"hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"
>
<app-link
v-if=
"onlyOneChild.meta"
:to=
"resolvePath(onlyOneChild.path, onlyOneChild.query)"
>
<el-menu-item
:style=
"sidebar.opened?'
padding-left: 25px;
':'padding-left: 0px;'"
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{'submenu-title-noDropdown':!isNest}">
<el-menu-item
:style=
"sidebar.opened?'':'padding-left: 0px;'"
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{'submenu-title-noDropdown':!isNest}">
<!--
<item
:icon=
"onlyOneChild.meta.icon||(item.meta&&item.meta.icon)"
:title=
"onlyOneChild.meta.title"
/>
-->
<div
style=
"display: inline-block;text-align: center;"
:class=
"
{'open':!sidebar.opened,'close':sidebar.opened}">
...
...
@@ -20,11 +20,9 @@
<div
style=
"display: inline-block;text-align: center;"
:class=
"
{'open':!sidebar.opened,'close':sidebar.opened}" >
<i
:class=
"item.meta.icon?('fa '+item.meta.icon):'fa fa-cog' "
style=
"font-size: 14px;color: #fff;"
></i>
</div>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"(item&&item.meta&&item.meta.title)?item.meta.title:item.title"
placement=
"right"
>
<span>
{{
(
item
&&
item
.
meta
&&
item
.
meta
.
title
)?
item
.
meta
.
title
:
item
.
title
}}
</span>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"(item&&item.meta&&item.meta.title)?item.meta.title:item.title"
placement=
"right"
>
<span>
{{
(
item
&&
item
.
meta
&&
item
.
meta
.
title
)?
item
.
meta
.
title
:
item
.
title
}}
</span>
</el-tooltip>
</
template
>
<sidebar-item
v-for=
"child in item.children"
...
...
@@ -89,9 +87,9 @@ export default {
})
// When there is only one child router, the child router is displayed by default
if
(
showingChildren
.
length
===
1
)
{
return
true
}
//
if (showingChildren.length === 1) {
//
return true
//
}
// Show parent if there are no child router to display
if
(
showingChildren
.
length
===
0
)
{
...
...
src/router/index.js
View file @
75b3ef00
...
...
@@ -29,6 +29,7 @@ import Layout from '@/layout'
*/
export
const
powerRoutes
=
[
{
path
:
'/basicData'
,
component
:
"Layout"
,
hidden
:
false
,
...
...
@@ -144,6 +145,15 @@ export const powerRoutes=[
}
]
},
{
path
:
'/scyfjz'
,
erpComponent
:
true
,
component
:
'template/index'
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'scyfjz'
,
meta
:
{
title
:
"双重预防机制"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
999000007
}
},
/* 重点工作管理*/
{
path
:
'/zdgzgl'
,
...
...
@@ -197,7 +207,8 @@ export const powerRoutes=[
/* 风险域控*/
{
path
:
'/riskPrecontrol'
,
component
:
'Layout'
,
erpComponent
:
true
,
component
:
'template/index'
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'screeningCriteria'
,
...
...
@@ -313,7 +324,8 @@ export const powerRoutes=[
/* 隐患管理*/
{
path
:
'/dangerManagement'
,
component
:
'Layout'
,
erpComponent
:
true
,
component
:
'template/index'
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'maintenanceDg'
,
...
...
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