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
d4f94f1a
Commit
d4f94f1a
authored
Jul 24, 2024
by
jlc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:图元对应名称的修改
parent
32729467
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
20 deletions
+8
-20
AsideMenuBar.vue
src/components/AsideMenuBar.vue
+4
-4
ElementMap.js
src/views/ElementMap.js
+1
-13
indexView.vue
src/views/indexView.vue
+3
-3
No files found.
src/components/AsideMenuBar.vue
View file @
d4f94f1a
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-icon><MapLocation
/></el-icon>
<el-icon><MapLocation
/></el-icon>
<span>
图元
</span>
<span>
图元
</span>
</
template
>
</
template
>
<el-menu-item
v-for=
"item in element
PointData
"
:key=
"item.id"
:index=
"item.title"
@
click=
"goAnchor(item.title)"
>
<el-menu-item
v-for=
"item in element
GraphicMap
"
:key=
"item.id"
:index=
"item.title"
@
click=
"goAnchor(item.title)"
>
<el-icon><View
/></el-icon>
<el-icon><View
/></el-icon>
<span>
{{item.title}}
</span>
<span>
{{item.title}}
</span>
</el-menu-item>
</el-menu-item>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<el-sub-menu
index=
"2"
>
<el-sub-menu
index=
"2"
>
<
template
#
title
>
<
template
#
title
>
<el-icon><SemiSelect
/></el-icon>
<el-icon><SemiSelect
/></el-icon>
<span>
线的案例
</span>
<span>
天气
</span>
</
template
>
</
template
>
<el-menu-item
v-for=
"item in elementLineData"
:key=
"item.id"
:index=
"item.title"
@
click=
"goAnchor(item.title)"
>
<el-menu-item
v-for=
"item in elementLineData"
:key=
"item.id"
:index=
"item.title"
@
click=
"goAnchor(item.title)"
>
<el-icon><View
/></el-icon>
<el-icon><View
/></el-icon>
...
@@ -46,13 +46,13 @@
...
@@ -46,13 +46,13 @@
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
{
MapLocation
,
SemiSelect
,
Grid
,
View
}
from
"@element-plus/icons-vue"
;
import
{
MapLocation
,
SemiSelect
,
Grid
,
View
}
from
"@element-plus/icons-vue"
;
import
{
element
Point
Map
,
elementLineMap
,
elementPlaneMap
}
from
'@/views/ElementMap'
;
import
{
element
Graphic
Map
,
elementLineMap
,
elementPlaneMap
}
from
'@/views/ElementMap'
;
const
elementPointData
=
ref
()
const
elementPointData
=
ref
()
const
elementLineData
=
ref
()
const
elementLineData
=
ref
()
const
elementPlaneData
=
ref
()
const
elementPlaneData
=
ref
()
elementPointData
.
value
=
element
Point
Map
;
elementPointData
.
value
=
element
Graphic
Map
;
elementLineData
.
value
=
elementLineMap
;
elementLineData
.
value
=
elementLineMap
;
elementPlaneData
.
value
=
elementPlaneMap
;
elementPlaneData
.
value
=
elementPlaneMap
;
...
...
src/views/ElementMap.js
View file @
d4f94f1a
export
const
element
Point
Map
=
{
export
const
element
Graphic
Map
=
{
One
:
{
One
:
{
title
:
'点'
,
title
:
'点'
,
pngUrl
:
'/src/assets/PointOne.png'
pngUrl
:
'/src/assets/PointOne.png'
...
@@ -10,18 +10,6 @@ export const elementPointMap = {
...
@@ -10,18 +10,6 @@ export const elementPointMap = {
Three
:
{
Three
:
{
title
:
'多面'
,
title
:
'多面'
,
pngUrl
:
'/src/assets/Plane.png'
pngUrl
:
'/src/assets/Plane.png'
},
Four
:
{
title
:
'pointFour'
,
pngUrl
:
'/src/assets/PointOne.png'
},
Five
:
{
title
:
'pointFive'
,
pngUrl
:
'/src/assets/PointOne.png'
},
Six
:
{
title
:
'pointSix'
,
pngUrl
:
'/src/assets/PointOne.png'
}
}
}
}
...
...
src/views/indexView.vue
View file @
d4f94f1a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"mt-5"
>
<div
class=
"mt-5"
>
<span
class=
"text-base font-bold"
>
图元
</span>
<span
class=
"text-base font-bold"
>
图元
</span>
<div
style=
"overflow-y: auto"
class=
"container"
>
<div
style=
"overflow-y: auto"
class=
"container"
>
<div
v-for=
"item in element
PointData
"
:key=
"item.id"
@
click=
"indexBtn(item.title)"
class=
"item-container"
>
<div
v-for=
"item in element
GraphicMap
"
:key=
"item.id"
@
click=
"indexBtn(item.title)"
class=
"item-container"
>
<div
:id=
"item.title"
>
{{
item
.
title
}}
</div>
<div
:id=
"item.title"
>
{{
item
.
title
}}
</div>
<img
:src=
"item.pngUrl"
width=
"250"
>
<img
:src=
"item.pngUrl"
width=
"250"
>
</div>
</div>
...
@@ -33,14 +33,14 @@
...
@@ -33,14 +33,14 @@
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
element
Point
Map
,
elementLineMap
,
elementPlaneMap
}
from
'./ElementMap'
;
import
{
element
Graphic
Map
,
elementLineMap
,
elementPlaneMap
}
from
'./ElementMap'
;
const
router
=
useRouter
()
const
router
=
useRouter
()
const
elementPointData
=
ref
()
const
elementPointData
=
ref
()
const
elementLineData
=
ref
()
const
elementLineData
=
ref
()
const
elementPlaneData
=
ref
()
const
elementPlaneData
=
ref
()
elementPointData
.
value
=
element
Point
Map
;
elementPointData
.
value
=
element
Graphic
Map
;
elementLineData
.
value
=
elementLineMap
;
elementLineData
.
value
=
elementLineMap
;
elementPlaneData
.
value
=
elementPlaneMap
;
elementPlaneData
.
value
=
elementPlaneMap
;
...
...
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