|
@@ -32,8 +32,11 @@ import {useRoute, useRouter} from "vue-router";
|
|
|
import {
|
|
|
selectInterfaceKooleitMainType,
|
|
|
} from '@/service/power-home/basicMap'
|
|
|
+import commonTool from '@/assets/imgs/commonTools.png'
|
|
|
+import spatialAnalysis from '@/assets/imgs/spatialAnalysis.png'
|
|
|
import special from '@/assets/imgs/special.png'
|
|
|
import basicFunction from '@/assets/imgs/basicFunction.png'
|
|
|
+import location from '@/assets/imgs/location.png'
|
|
|
import mapDrawing from '@/assets/imgs/mapDrawing.png'
|
|
|
import positioning from '@/assets/imgs/cim/positioning.jpeg'
|
|
|
import labelAnnotations from '@/assets/imgs/cim/labelAnnotations.png'
|
|
@@ -47,7 +50,7 @@ import modelInformation from '@/assets/imgs/cim/modelInformation.png'
|
|
|
import componentStatus from '@/assets/imgs/cim/componentStatus.png'
|
|
|
import interoperability from '@/assets/imgs/cim/interoperability.png'
|
|
|
import commonTools from '@/assets/imgs/cim/commonTools.png'
|
|
|
-import spatialAnalysis from '@/assets/imgs/cim/spatialAnalysis.png'
|
|
|
+import bimSpatialAnalysis from '@/assets/imgs/cim/spatialAnalysis.png'
|
|
|
import interfaceTool from '@/assets/imgs/interfaceTool.png'
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
@@ -56,40 +59,76 @@ const title = ref('')
|
|
|
|
|
|
const data = ref([])
|
|
|
|
|
|
-function getImagePath(name) {
|
|
|
- switch (name) {
|
|
|
+function getImagePath(node) {
|
|
|
+ switch (node.NAME) {
|
|
|
case '常用工具':
|
|
|
return commonTools
|
|
|
case '专题图':
|
|
|
return special
|
|
|
case '空间分析':
|
|
|
+ if (node.type == 3){
|
|
|
+ return bimSpatialAnalysis
|
|
|
+ }
|
|
|
return spatialAnalysis
|
|
|
case '地图基本功能':
|
|
|
return basicFunction
|
|
|
case '定位':
|
|
|
- return positioning
|
|
|
+ if (node.type == 3){
|
|
|
+ return positioning
|
|
|
+ }
|
|
|
+ return location
|
|
|
case '地图绘制':
|
|
|
return mapDrawing
|
|
|
case '交互操作':
|
|
|
- return interoperability
|
|
|
+ if (node.type == 3){
|
|
|
+ return interoperability
|
|
|
+ }
|
|
|
+ return commonTool
|
|
|
case '构件状态':
|
|
|
- return componentStatus
|
|
|
+ if (node.type == 3){
|
|
|
+ return componentStatus
|
|
|
+ }
|
|
|
+ return special
|
|
|
case '模型信息':
|
|
|
- return modelInformation
|
|
|
+ if (node.type == 3){
|
|
|
+ return modelInformation
|
|
|
+ }
|
|
|
+ return spatialAnalysis
|
|
|
case '模型视角':
|
|
|
- return modelPerspective
|
|
|
+ if (node.type == 3){
|
|
|
+ return modelPerspective
|
|
|
+ }
|
|
|
+ return basicFunction
|
|
|
case '模型效果':
|
|
|
- return modelEffects
|
|
|
+ if (node.type == 3){
|
|
|
+ return modelEffects
|
|
|
+ }
|
|
|
+ return location
|
|
|
case '外部构件':
|
|
|
- return externalComponents
|
|
|
+ if (node.type == 3){
|
|
|
+ return externalComponents
|
|
|
+ }
|
|
|
+ return mapDrawing
|
|
|
case '监听事件':
|
|
|
- return listenEvents
|
|
|
+ if (node.type == 3){
|
|
|
+ return listenEvents
|
|
|
+ }
|
|
|
+ return commonTool
|
|
|
case '房间相关':
|
|
|
- return roomRelated
|
|
|
+ if (node.type == 3){
|
|
|
+ return roomRelated
|
|
|
+ }
|
|
|
+ return special
|
|
|
case '路径漫游':
|
|
|
- return pathRoaming
|
|
|
+ if (node.type == 3){
|
|
|
+ return pathRoaming
|
|
|
+ }
|
|
|
+ return spatialAnalysis
|
|
|
case '标签批注':
|
|
|
- return labelAnnotations
|
|
|
+ if (node.type == 3){
|
|
|
+ return labelAnnotations
|
|
|
+ }
|
|
|
+ return spatialAnalysis
|
|
|
default:
|
|
|
return interfaceTool
|
|
|
}
|