瀏覽代碼

fix
1.修复应用赋能图片

Mr.zhang 7 月之前
父節點
當前提交
0c4bced256
共有 1 個文件被更改,包括 22 次插入18 次删除
  1. 22 18
      src/views/power-home/interface/InterfaceUtil.vue

+ 22 - 18
src/views/power-home/interface/InterfaceUtil.vue

@@ -56,76 +56,80 @@ const route = useRoute()
 const router = useRouter()
 
 const title = ref('')
+const type = ref('')
 
 const data = ref([])
 
-function getImagePath(node) {
-  switch (node.NAME) {
+function getImagePath(name) {
+  switch (name) {
     case '常用工具':
-      return commonTools
+      if (type.value== 3){
+        return commonTools
+      }
+      return commonTool
     case '专题图':
       return special
     case '空间分析':
-      if (node.type == 3){
+      if (type.value== 3){
         return bimSpatialAnalysis
       }
       return spatialAnalysis
     case '地图基本功能':
       return basicFunction
     case '定位':
-      if (node.type == 3){
+      if (type.value== 3){
         return positioning
       }
       return location
     case '地图绘制':
       return mapDrawing
     case '交互操作':
-      if (node.type == 3){
+      if (type.value== 3){
         return interoperability
       }
       return commonTool
     case '构件状态':
-      if (node.type == 3){
+      if (type.value== 3){
         return componentStatus
       }
       return special
     case '模型信息':
-      if (node.type == 3){
+      if (type.value== 3){
         return modelInformation
       }
       return spatialAnalysis
     case '模型视角':
-      if (node.type == 3){
+      if (type.value== 3){
         return modelPerspective
       }
       return basicFunction
     case '模型效果':
-      if (node.type == 3){
+      if (type.value== 3){
         return modelEffects
       }
       return location
     case '外部构件':
-      if (node.type == 3){
+      if (type.value== 3){
         return externalComponents
       }
       return mapDrawing
     case '监听事件':
-      if (node.type == 3){
+      if (type.value== 3){
         return listenEvents
       }
       return commonTool
     case '房间相关':
-      if (node.type == 3){
+      if (type.value== 3){
         return roomRelated
       }
       return special
     case '路径漫游':
-      if (node.type == 3){
+      if (type.value== 3){
         return pathRoaming
       }
       return spatialAnalysis
     case '标签批注':
-      if (node.type == 3){
+      if (type.value== 3){
         return labelAnnotations
       }
       return spatialAnalysis
@@ -147,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;
@@ -164,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);
   });