Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6f3e052e
authored
2025-06-18 18:56:55 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接入全景数字地图
1 parent
fbb2547e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
src/router/modules/dataMeta.ts
src/store/modules/menu.ts
src/store/modules/route.ts
src/router/modules/dataMeta.ts
View file @
6f3e052
...
...
@@ -179,6 +179,28 @@ const routes: RouteRecordRaw[] = [
}
]
},
{
path
:
'/data-meta/portraitMap'
,
component
:
Layout
,
meta
:
{
title
:
'全景地图'
,
icon
:
'sidebar-videos'
,
},
children
:
[
{
path
:
''
,
name
:
'portraitMap'
,
component
:
()
=>
import
(
'@/views/data_meta/portraitMap.vue'
),
meta
:
{
title
:
'全景地图'
,
sidebar
:
false
,
breadcrumb
:
false
,
cache
:
true
,
reuse
:
true
},
}
]
}
]
export
default
routes
...
...
src/store/modules/menu.ts
View file @
6f3e052
...
...
@@ -177,6 +177,9 @@ const useMenuStore = defineStore(
if
((
data
==
"/data-meta/reports/iframePage"
||
data
==
"/data-meta/report/budgetDataIndex"
)
&&
r
.
path
?.
includes
(
'/data-meta/report'
))
{
return
true
;
}
if
(
data
==
"/data-meta/portraitMap"
&&
r
.
path
?.
includes
(
'/data-meta/portraitMap'
))
{
return
true
;
}
if
(
data
.
indexOf
(
`
${
r
.
path
}
/`
)
===
0
||
data
===
r
.
path
)
{
return
true
;
}
...
...
src/store/modules/route.ts
View file @
6f3e052
...
...
@@ -157,9 +157,9 @@ const useRouteStore = defineStore(
};
}
r
=
routes
.
find
((
route
:
any
)
=>
{
return
route
.
path
===
path
||
route
.
path
===
m
.
path
||
`/
${
route
.
path
}
`
===
m
.
path
||
((
path
.
includes
(
'budgetDataIndex'
)
&&
path
.
includes
(
'/data-meta/report'
)
&&
route
.
path
.
includes
(
'/data-meta/report'
))
||
(
path
.
includes
(
'iframePage'
)
&&
path
.
includes
(
'/data-meta/report'
)));
return
route
.
path
===
path
||
route
.
path
===
m
.
path
||
`/
${
route
.
path
}
`
===
m
.
path
||
((
path
.
includes
(
'budgetDataIndex'
)
&&
path
.
includes
(
'/data-meta/report'
)
&&
route
.
path
.
includes
(
'/data-meta/report'
))
||
(
path
.
includes
(
'iframePage'
)
&&
path
.
includes
(
'/data-meta/report'
))
||
(
path
.
includes
(
'/data-meta/portraitMap'
)
&&
route
.
path
.
includes
(
'/data-meta/portraitMap'
))
);
});
if
(
r
&&
(
path
.
includes
(
'budgetDataIndex'
)
||
path
.
includes
(
'iframePage'
)))
{
if
(
r
&&
(
path
.
includes
(
'budgetDataIndex'
)
||
path
.
includes
(
'iframePage'
))
||
path
.
includes
(
'portraitMap'
)
)
{
r
.
path
=
path
;
}
if
(
r
&&
m
.
icon
&&
m
.
icon
!==
"{}"
)
{
...
...
Write
Preview
Styling with
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