|
@@ -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,49 +50,89 @@ 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()
|
|
|
|
|
|
const title = ref('')
|
|
|
+const type = ref('')
|
|
|
|
|
|
const data = ref([])
|
|
|
|
|
|
function getImagePath(name) {
|
|
|
switch (name) {
|
|
|
case '常用工具':
|
|
|
- return commonTools
|
|
|
+ if (type.value== 3){
|
|
|
+ return commonTools
|
|
|
+ }
|
|
|
+ return commonTool
|
|
|
case '专题图':
|
|
|
return special
|
|
|
case '空间分析':
|
|
|
+ if (type.value== 3){
|
|
|
+ return bimSpatialAnalysis
|
|
|
+ }
|
|
|
return spatialAnalysis
|
|
|
case '地图基本功能':
|
|
|
return basicFunction
|
|
|
case '定位':
|
|
|
- return positioning
|
|
|
+ if (type.value== 3){
|
|
|
+ return positioning
|
|
|
+ }
|
|
|
+ return location
|
|
|
case '地图绘制':
|
|
|
return mapDrawing
|
|
|
case '交互操作':
|
|
|
- return interoperability
|
|
|
+ if (type.value== 3){
|
|
|
+ return interoperability
|
|
|
+ }
|
|
|
+ return commonTool
|
|
|
case '构件状态':
|
|
|
- return componentStatus
|
|
|
+ if (type.value== 3){
|
|
|
+ return componentStatus
|
|
|
+ }
|
|
|
+ return special
|
|
|
case '模型信息':
|
|
|
- return modelInformation
|
|
|
+ if (type.value== 3){
|
|
|
+ return modelInformation
|
|
|
+ }
|
|
|
+ return spatialAnalysis
|
|
|
case '模型视角':
|
|
|
- return modelPerspective
|
|
|
+ if (type.value== 3){
|
|
|
+ return modelPerspective
|
|
|
+ }
|
|
|
+ return basicFunction
|
|
|
case '模型效果':
|
|
|
- return modelEffects
|
|
|
+ if (type.value== 3){
|
|
|
+ return modelEffects
|
|
|
+ }
|
|
|
+ return location
|
|
|
case '外部构件':
|
|
|
- return externalComponents
|
|
|
+ if (type.value== 3){
|
|
|
+ return externalComponents
|
|
|
+ }
|
|
|
+ return mapDrawing
|
|
|
case '监听事件':
|
|
|
- return listenEvents
|
|
|
+ if (type.value== 3){
|
|
|
+ return listenEvents
|
|
|
+ }
|
|
|
+ return commonTool
|
|
|
case '房间相关':
|
|
|
- return roomRelated
|
|
|
+ if (type.value== 3){
|
|
|
+ return roomRelated
|
|
|
+ }
|
|
|
+ return special
|
|
|
case '路径漫游':
|
|
|
- return pathRoaming
|
|
|
+ if (type.value== 3){
|
|
|
+ return pathRoaming
|
|
|
+ }
|
|
|
+ return spatialAnalysis
|
|
|
case '标签批注':
|
|
|
- return labelAnnotations
|
|
|
+ if (type.value== 3){
|
|
|
+ return labelAnnotations
|
|
|
+ }
|
|
|
+ return spatialAnalysis
|
|
|
default:
|
|
|
return interfaceTool
|
|
|
}
|
|
@@ -108,9 +151,9 @@ onMounted(() => {
|
|
|
})
|
|
|
|
|
|
function listByType() {
|
|
|
- let type = route.params.type
|
|
|
+ type.value = route.params.type
|
|
|
|
|
|
- switch (type) {
|
|
|
+ switch (type.value) {
|
|
|
case '1':
|
|
|
title.value = 'Geoscene工具'
|
|
|
break;
|
|
@@ -125,7 +168,7 @@ function listByType() {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- selectInterfaceKooleitMainType(type).then((response) => {
|
|
|
+ selectInterfaceKooleitMainType(type.value).then((response) => {
|
|
|
const originalData = response.msg[0].Rows;
|
|
|
data.value = chunkArray(originalData, 6);
|
|
|
});
|