Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cesium-frame
Overview
Overview
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
jlc
cesium-frame
Commits
20f4b308
Commit
20f4b308
authored
Jul 29, 2024
by
jlc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:太空任务目录的添加
parent
96625002
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
6 deletions
+36
-6
AsideMenuBar.vue
src/components/AsideMenuBar.vue
+17
-4
ElementMap.js
src/views/ElementMap.js
+7
-0
indexView.vue
src/views/indexView.vue
+12
-2
No files found.
src/components/AsideMenuBar.vue
View file @
20f4b308
...
...
@@ -9,6 +9,17 @@
<el-sub-menu
index=
"1"
>
<template
#
title
>
<el-icon><MapLocation
/></el-icon>
<span>
太空任务
</span>
</
template
>
<el-menu-item
v-for=
"item in elementSpaceMissions"
:key=
"item.id"
:index=
"item.title"
@
click=
"goAnchor(item.title)"
>
<el-icon><View
/></el-icon>
<span>
{{item.title}}
</span>
</el-menu-item>
</el-sub-menu>
<el-sub-menu
index=
"2"
>
<
template
#
title
>
<el-icon><MapLocation
/></el-icon>
<span>
图元
</span>
</
template
>
<el-menu-item
v-for=
"item in elementGraphic"
:key=
"item.id"
:index=
"item.title"
@
click=
"goAnchor(item.title)"
>
...
...
@@ -17,7 +28,7 @@
</el-menu-item>
</el-sub-menu>
<el-sub-menu
index=
"
2
"
>
<el-sub-menu
index=
"
3
"
>
<
template
#
title
>
<el-icon><SemiSelect
/></el-icon>
<span>
天气
</span>
...
...
@@ -28,7 +39,7 @@
</el-menu-item>
</el-sub-menu>
<el-sub-menu
index=
"
3
"
>
<el-sub-menu
index=
"
4
"
>
<
template
#
title
>
<el-icon><Grid
/></el-icon>
<span>
测站
</span>
...
...
@@ -39,7 +50,7 @@
</el-menu-item>
</el-sub-menu>
<el-sub-menu
index=
"
4
"
>
<el-sub-menu
index=
"
5
"
>
<
template
#
title
>
<el-icon><Grid
/></el-icon>
<span>
动目标
</span>
...
...
@@ -58,13 +69,15 @@
<
script
setup
>
import
{
ref
}
from
'vue'
;
import
{
MapLocation
,
SemiSelect
,
Grid
,
View
}
from
"@element-plus/icons-vue"
;
import
{
elementGraphicMap
,
elementWeatherMap
,
elementStationMap
,
elementMovingMap
}
from
'@/views/ElementMap'
;
import
{
element
SpaceMissionsMap
,
element
GraphicMap
,
elementWeatherMap
,
elementStationMap
,
elementMovingMap
}
from
'@/views/ElementMap'
;
const
elementSpaceMissions
=
ref
()
const
elementGraphic
=
ref
()
const
elementWeather
=
ref
()
const
elementStation
=
ref
()
const
elementMoving
=
ref
()
elementSpaceMissions
.
value
=
elementSpaceMissionsMap
;
elementGraphic
.
value
=
elementGraphicMap
;
elementWeather
.
value
=
elementWeatherMap
;
elementStation
.
value
=
elementStationMap
;
...
...
src/views/ElementMap.js
View file @
20f4b308
export
const
elementSpaceMissionsMap
=
{
月球轨道
:
{
title
:
'月球轨道'
,
pngUrl
:
'/src/assets/Station.png'
}
}
export
const
elementGraphicMap
=
{
点
:
{
title
:
'点'
,
...
...
src/views/indexView.vue
View file @
20f4b308
<
template
>
<div
class=
"app-continer"
>
<div
class=
"mt-5"
>
<span
class=
"text-base font-bold"
>
太空任务
</span>
<div
style=
"overflow-y: auto"
class=
"container"
>
<div
v-for=
"item in elementSpaceMissions"
:key=
"item.id"
@
click=
"indexBtn(item.title)"
class=
"item-container"
>
<div
:id=
"item.title"
>
{{
item
.
title
}}
</div>
<img
:src=
"item.pngUrl"
width=
"250"
>
</div>
</div>
</div>
<div
class=
"mt-5"
>
<span
class=
"text-base font-bold"
>
图元
</span>
<div
style=
"overflow-y: auto"
class=
"container"
>
<div
v-for=
"item in elementGraphic"
:key=
"item.id"
@
click=
"indexBtn(item.title)"
class=
"item-container"
>
...
...
@@ -42,15 +51,16 @@
<
script
setup
>
import
{
ref
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
elementGraphicMap
,
elementWeatherMap
,
elementStationMap
,
elementMovingMap
}
from
'./ElementMap'
;
import
{
element
SpaceMissionsMap
,
element
GraphicMap
,
elementWeatherMap
,
elementStationMap
,
elementMovingMap
}
from
'./ElementMap'
;
const
router
=
useRouter
()
const
elementSpaceMissions
=
ref
()
const
elementGraphic
=
ref
()
const
elementWeather
=
ref
()
const
elementStation
=
ref
()
const
elementMoving
=
ref
()
elementSpaceMissions
.
value
=
elementSpaceMissionsMap
;
elementGraphic
.
value
=
elementGraphicMap
;
elementWeather
.
value
=
elementWeatherMap
;
elementStation
.
value
=
elementStationMap
;
...
...
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