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
53571b9e
Commit
53571b9e
authored
May 26, 2023
by
caixingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
a4c91c10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
Sidebar.vue
...operate-ui/src/views/detail/party-a/component/Sidebar.vue
+22
-1
index.vue
dsk-operate-ui/src/views/detail/party-a/index.vue
+1
-1
No files found.
dsk-operate-ui/src/views/detail/party-a/component/Sidebar.vue
View file @
53571b9e
...
...
@@ -7,7 +7,7 @@
<i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
@
click=
"handleSearch"
></i>
</el-input>
<el-menu
default-active=
"1
"
:default-active=
"routeIndex
"
class=
"detail-menu"
@
open=
"handleOpen"
>
<template
v-for=
"(item, index) in sideRoute"
>
...
...
@@ -31,6 +31,10 @@ export default {
type
:
Number
,
default
:
null
},
pathName
:
{
type
:
String
,
default
:
null
},
},
data
()
{
return
{
...
...
@@ -93,6 +97,23 @@ export default {
sideHeight
=
null
}
return
sideHeight
},
routeIndex
(){
let
idx
=
'0-0'
,
sideArr
=
this
.
sideRoute
for
(
let
i
=
0
;
i
<
sideArr
.
length
;
i
++
){
if
(
sideArr
[
i
].
pathName
==
this
.
pathName
){
idx
=
i
.
toString
()
break
}
else
if
(
sideArr
[
i
].
children
){
for
(
let
j
=
0
;
j
<
sideArr
[
i
].
children
.
length
;
j
++
){
if
(
sideArr
[
i
].
children
.
pathName
==
this
.
pathName
){
idx
=
i
+
'-'
+
j
break
}
}
}
}
return
idx
}
},
created
()
{
...
...
dsk-operate-ui/src/views/detail/party-a/index.vue
View file @
53571b9e
...
...
@@ -3,7 +3,7 @@
<Header
:company-id=
"companyId"
v-if=
"companyId"
/>
<div
class=
"flex-box part-main"
>
<div
class=
"part-left"
>
<side-bar
@
currentPath=
"showPartPage"
:partBoxHeight=
"partBoxHeight"
/>
<side-bar
@
currentPath=
"showPartPage"
:pa
thName=
"currentPath.pathName"
:pa
rtBoxHeight=
"partBoxHeight"
/>
</div>
<div
class=
"part-right"
>
<div
id=
"partBox"
v-if=
"companyId"
>
...
...
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