Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
224c1481
Commit
224c1481
authored
May 19, 2023
by
MyName
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.60.201/root/dsk-operate-sys
parents
951c16b3
311df8eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
index.vue
dsk-operate-ui/src/layout/components/TagsView/index.vue
+2
-2
index.js
dsk-operate-ui/src/router/index.js
+2
-2
No files found.
dsk-operate-ui/src/layout/components/TagsView/index.vue
View file @
224c1481
...
...
@@ -52,13 +52,13 @@ export default {
},
iconName
()
{
return
function
(
val
)
{
let
svgIcon
=
val
.
meta
.
icon
,
currentIcon
=
''
let
svgIcon
=
val
.
meta
&&
val
.
meta
.
icon
,
currentIcon
=
''
let
icon
=
this
.
isActive
(
val
)
?
svgIcon
+
'Tags'
:
svgIcon
+
'Tag'
if
(
!
svgIcon
)
{
const
index
=
val
.
path
.
indexOf
(
'/'
,
val
.
path
.
indexOf
(
'/'
)
+
1
)
const
parentPath
=
val
.
path
.
slice
(
0
,
index
)
const
currentRoute
=
this
.
$router
.
options
.
routes
.
find
(
item
=>
item
.
path
===
parentPath
)
currentIcon
=
currentRoute
.
meta
.
icon
currentIcon
=
currentRoute
.
meta
&&
currentRoute
.
meta
.
icon
icon
=
this
.
isActive
(
val
)
?
currentIcon
+
'Tags'
:
currentIcon
+
'Tag'
}
icon
=
(
svgIcon
&&
svgIcon
!=
'#'
)
||
(
currentIcon
&&
svgIcon
!=
'#'
)
?
icon
:
this
.
isActive
(
val
)
?
'defaultTags'
:
'defaultTag'
...
...
dsk-operate-ui/src/router/index.js
View file @
224c1481
...
...
@@ -98,13 +98,13 @@ export const constantRoutes = [
path
:
'party-a'
,
component
:
()
=>
import
(
'@/views/detail/party-a/index'
),
name
:
'PartyA'
,
meta
:
{
title
:
'甲方详情'
,
icon
:
'custom'
}
meta
:
{
title
:
'甲方详情'
}
},
{
path
:
'party-b'
,
component
:
()
=>
import
(
'@/views/detail/party-b/index'
),
name
:
'PartyB'
,
meta
:
{
title
:
'已方详情'
,
icon
:
'user'
}
meta
:
{
title
:
'已方详情'
}
}
]
},
...
...
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