Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
project_progress
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 ed1b954c
authored
Jun 28, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加路由名称
1 parent
853353a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
src/router/index.js
src/views/layout/leftBar.vue
src/router/index.js
View file @
ed1b954
...
@@ -185,6 +185,9 @@ export const routes = [
...
@@ -185,6 +185,9 @@ export const routes = [
path
:
'/mainLayout/assistedViewing'
,
path
:
'/mainLayout/assistedViewing'
,
name
:
'assistedViewing'
,
name
:
'assistedViewing'
,
component
:
()
=>
import
(
'@/views/assessChecks/assistedViewing.vue'
),
component
:
()
=>
import
(
'@/views/assessChecks/assistedViewing.vue'
),
meta
:
{
title
:
"评估结果查看"
,
},
},
},
{
{
path
:
'/mainLayout/assitedDistribution'
,
path
:
'/mainLayout/assitedDistribution'
,
...
@@ -195,6 +198,9 @@ export const routes = [
...
@@ -195,6 +198,9 @@ export const routes = [
path
:
'/mainLayout/auxiliaryInspection'
,
path
:
'/mainLayout/auxiliaryInspection'
,
name
:
'auxiliaryInspection'
,
name
:
'auxiliaryInspection'
,
component
:
()
=>
import
(
'@/views/assessChecks/auxiliaryInspection.vue'
),
component
:
()
=>
import
(
'@/views/assessChecks/auxiliaryInspection.vue'
),
meta
:
{
title
:
"项目辅助检查"
,
},
},
},
{
{
path
:
'/mainLayout/auxiliaryQuery'
,
path
:
'/mainLayout/auxiliaryQuery'
,
...
@@ -205,6 +211,9 @@ export const routes = [
...
@@ -205,6 +211,9 @@ export const routes = [
path
:
'/mainLayout/confirmRelease'
,
path
:
'/mainLayout/confirmRelease'
,
name
:
'confirmRelease'
,
name
:
'confirmRelease'
,
component
:
()
=>
import
(
'@/views/assessChecks/confirmRelease.vue'
),
component
:
()
=>
import
(
'@/views/assessChecks/confirmRelease.vue'
),
meta
:
{
title
:
"评估项目确认"
,
},
},
},
{
{
path
:
'/mainLayout/confirmChanges'
,
path
:
'/mainLayout/confirmChanges'
,
...
@@ -215,6 +224,9 @@ export const routes = [
...
@@ -215,6 +224,9 @@ export const routes = [
path
:
'/mainLayout/materialAcquisition'
,
path
:
'/mainLayout/materialAcquisition'
,
name
:
'materialAcquisition'
,
name
:
'materialAcquisition'
,
component
:
()
=>
import
(
'@/views/assessChecks/materialAcquisition.vue'
),
component
:
()
=>
import
(
'@/views/assessChecks/materialAcquisition.vue'
),
meta
:
{
title
:
"评估材料提交"
,
},
},
},
{
{
path
:
'/mainLayout/materialAnalysis'
,
path
:
'/mainLayout/materialAnalysis'
,
...
...
src/views/layout/leftBar.vue
View file @
ed1b954
...
@@ -54,6 +54,7 @@ export default {
...
@@ -54,6 +54,7 @@ export default {
isOpen
:
false
,
isOpen
:
false
,
openeds
:
[
"0"
],
//默认展开导航栏
openeds
:
[
"0"
],
//默认展开导航栏
activeIndex
:
""
,
activeIndex
:
""
,
routerTabs
:[],
};
};
},
},
props
:
{
props
:
{
...
@@ -89,11 +90,13 @@ export default {
...
@@ -89,11 +90,13 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
kzMenu
.
activeIndex
=
this
.
$route
.
path
;
this
.
$refs
.
kzMenu
.
activeIndex
=
this
.
$route
.
path
;
});
});
}
}
// this.$refs.kzMenu.activeIndex = this.$route.path;
console
.
log
(
this
.
$route
.
meta
.
title
,
'路由名字'
)
// this.activeIndex = this.$route.path;
if
(
!
this
.
routerTabs
.
includes
(
this
.
$route
.
meta
.
title
)){
},
this
.
routerTabs
.
push
(
this
.
$route
.
meta
.
title
)
}
console
.
log
(
this
.
routerTabs
)
},
},
},
autho
(
newVal
,
oldVal
)
{
autho
(
newVal
,
oldVal
)
{
console
.
log
(
newVal
,
"newValnewVal"
);
console
.
log
(
newVal
,
"newValnewVal"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment