Browse Source

解决信息点整理图片不显示问题

shaun-sheep 4 years ago
parent
commit
d2db48892c
4 changed files with 261 additions and 261 deletions
  1. 6 6
      config/dev.env.js
  2. 173 173
      config/index.js
  3. 52 52
      src/views/data_admin/buildData/index-2.vue
  4. 30 30
      src/views/data_admin/buildData/index.vue

+ 6 - 6
config/dev.env.js

@@ -4,14 +4,14 @@ const prodEnv = require('./prod.env')
 
 module.exports = merge(prodEnv, {
     NODE_ENV: '"development"',
-    BASE_URL: '"http://172.16.44.215"', //测试iframe地址
-    SSO_SERVER: '"http://172.16.44.235:8081"', //测试环境
+    // BASE_URL: '"http://172.16.44.215"', //测试iframe地址
+    // SSO_SERVER: '"http://172.16.44.235:8081"', //测试环境
     // BASE_URL: '"http://192.168.20.236"', //(新)测试iframe地址
     // SSO_SERVER: '"http://192.168.20.236:8086"', //(新)测试环境
-    MQTT_SERVICE: '"ws://172.16.42.210:61614/stomp/"' //MQ测试环境地址
-    // SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
-    // BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
-    // MQTT_SERVICE: '"ws://adm.sagacloud.cn/stomp/"' //MQ正式环境地址
+    // MQTT_SERVICE: '"ws://172.16.42.210:61614/stomp/"' //MQ测试环境地址
+    SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
+    BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
+    MQTT_SERVICE: '"ws://adm.sagacloud.cn/stomp/"' //MQ正式环境地址
 })
 
 

+ 173 - 173
config/index.js

@@ -10,181 +10,181 @@ module.exports = {
     assetsSubDirectory: 'static',
     assetsPublicPath: '/',
 
-    // proxyTable: {//正式环境
-    //   '/admin': {
-    //     target: 'http://mbi.sagacloud.cn:8080',
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //       "^/admin": "/"
-    //     }
-    //   },
-    //   '/api': {
-    //     target: 'http://mbi.sagacloud.cn:8080',
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //       "^/api": "/"
-    //     }
-    //   },
-    //   '/data-platform-3': {
-    //     // 目标 API 地址
-    //     target: 'http://api.sagacloud.cn/',
-    //     // 如果要代理 websockets
-    //     ws: true,
-    //     // 将主机标头的原点更改为目标URL
-    //     changeOrigin: false
-    //   },
-    //   '/business-space': {
-    //     // 目标 API 地址
-    //     target: 'http://api.sagacloud.cn',
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //       "^/business-space": "/dp-auxiliary/business-space/"
-    //     }
-    //   },
-    //   '/pointconfig': {
-    //     // 目标 API 地址
-    //     target: 'http://mbi.sagacloud.cn:8080/',
-    //     // 如果要代理 websockets
-    //     ws: true,
-    //     // 将主机标头的原点更改为目标URL
-    //     changeOrigin: false
-    //   },
-    //   '/venders-dp': {
-    //     // 目标 API 地址
-    //     target: 'http://api.sagacloud.cn',
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //       "^/venders-dp": "/dp-auxiliary/venders-dp/"
-    //     }
-    //   },
-    //   '/venders': {
-    //     // 目标 API 地址
-    //     target: 'http://api.sagacloud.cn',
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //       "^/venders": "/dp-auxiliary/venders/"
-    //     }
-    //   },
-    //   '/ScanBuilding': {
-    //     // 目标 API 地址
-    //     target: 'http://mbi.sagacloud.cn:8080/',
-    //     // 如果要代理 websockets
-    //     ws: true,
-    //     // 将主机标头的原点更改为目标URL
-    //     changeOrigin: false
-    //   },
-    //   '/image-service': {
-    //     // 目标 API 地址
-    //     target: 'http://api.sagacloud.cn',
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //       "^/image-service": "/dp-auxiliary/image-service/"
-    //     }
-    //   },
-    //   '/modelapi': {
-    //     target: 'http://mbi.sagacloud.cn:8080',
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //       "^/modelapi": "/revit-algorithm/"
-    //     }
-    //   },
-    //   '/schedulerapi': {
-    //     target: 'http://mbi.sagacloud.cn:8080',
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //         "^/schedulerapi": "/scheduler/"
-    //     }
-    //   },
-    // },
-
-    proxyTable: {
-        '/admin': {
-            target: 'http://172.16.44.235:8080',
-            changeOrigin: true,
-            pathRewrite: {
-                "^/admin": "/"
-            }
-        },
-        '/api': {
-            target: 'http://172.16.44.235:8080',
-            changeOrigin: true,
-            pathRewrite: {
-                "^/api": "/"
-            }
-        },
-        '/data-platform-3': {
-            // 目标 API 地址
-            target: 'http://172.16.42.210:8080/',
-            // 如果要代理 websockets
-            ws: true,
-            // 将主机标头的原点更改为目标URL
-            changeOrigin: false
-        },
-        '/business-space': {
-            // 目标 API 地址
-            target: 'http://172.16.42.210:8080/',
-            // 如果要代理 websockets
-            ws: true,
-            // 将主机标头的原点更改为目标URL
-            changeOrigin: false
-        },
-        '/pointconfig': {
-            // 目标 API 地址
-            target: 'http://172.16.44.235:8080/',
-            // 如果要代理 websockets
-            ws: true,
-            // 将主机标头的原点更改为目标URL
-            changeOrigin: false
-        },
-        '/venders-dp': {
-            // 目标 API 地址
-            target: 'http://172.16.42.210:8080/',
-            // 如果要代理 websockets
-            ws: true,
-            // 将主机标头的原点更改为目标URL
-            changeOrigin: false
-        },
-        '/venders': {
-            // 目标 API 地址
-            target: 'http://172.16.42.210:8080/',
-            // 如果要代理 websockets
-            ws: true,
-            // 将主机标头的原点更改为目标URL
-            changeOrigin: false
-        },
-        '/ScanBuilding': {
-            // 目标 API 地址
-            target: 'http://172.16.44.235:8080/',
-            // 如果要代理 websockets
-            ws: true,
-            // 将主机标头的原点更改为目标URL
-            changeOrigin: false
-        },
-        '/image-service': {
-            // 目标 API 地址
-            target: 'http://172.16.42.210:8080/',
-            // 如果要代理 websockets
-            ws: true,
-            // 将主机标头的原点更改为目标URL
-            changeOrigin: false
-        },
-        '/modelapi': {
-            target: 'http://172.16.42.210:8082',
-            // target: 'http://192.168.20.218:8082',//景灏
-            changeOrigin: true,
-            pathRewrite: {
-                "^/modelapi": "/"
-            }
-        },
-        '/schedulerapi': {
-          target: 'http://172.16.42.210:8081',
-          changeOrigin: true,
-          pathRewrite: {
-              "^/schedulerapi": "/"
-          }
-        },
+    proxyTable: {//正式环境
+      '/admin': {
+        target: 'http://mbi.sagacloud.cn:8080',
+        changeOrigin: true,
+        pathRewrite: {
+          "^/admin": "/"
+        }
+      },
+      '/api': {
+        target: 'http://mbi.sagacloud.cn:8080',
+        changeOrigin: true,
+        pathRewrite: {
+          "^/api": "/"
+        }
+      },
+      '/data-platform-3': {
+        // 目标 API 地址
+        target: 'http://api.sagacloud.cn/',
+        // 如果要代理 websockets
+        ws: true,
+        // 将主机标头的原点更改为目标URL
+        changeOrigin: false
+      },
+      '/business-space': {
+        // 目标 API 地址
+        target: 'http://api.sagacloud.cn',
+        changeOrigin: true,
+        pathRewrite: {
+          "^/business-space": "/dp-auxiliary/business-space/"
+        }
+      },
+      '/pointconfig': {
+        // 目标 API 地址
+        target: 'http://mbi.sagacloud.cn:8080/',
+        // 如果要代理 websockets
+        ws: true,
+        // 将主机标头的原点更改为目标URL
+        changeOrigin: false
+      },
+      '/venders-dp': {
+        // 目标 API 地址
+        target: 'http://api.sagacloud.cn',
+        changeOrigin: true,
+        pathRewrite: {
+          "^/venders-dp": "/dp-auxiliary/venders-dp/"
+        }
+      },
+      '/venders': {
+        // 目标 API 地址
+        target: 'http://api.sagacloud.cn',
+        changeOrigin: true,
+        pathRewrite: {
+          "^/venders": "/dp-auxiliary/venders/"
+        }
+      },
+      '/ScanBuilding': {
+        // 目标 API 地址
+        target: 'http://mbi.sagacloud.cn:8080/',
+        // 如果要代理 websockets
+        ws: true,
+        // 将主机标头的原点更改为目标URL
+        changeOrigin: false
+      },
+      '/image-service': {
+        // 目标 API 地址
+        target: 'http://api.sagacloud.cn',
+        changeOrigin: true,
+        pathRewrite: {
+          "^/image-service": "/dp-auxiliary/image-service/"
+        }
+      },
+      '/modelapi': {
+        target: 'http://mbi.sagacloud.cn:8080',
+        changeOrigin: true,
+        pathRewrite: {
+          "^/modelapi": "/revit-algorithm/"
+        }
+      },
+      '/schedulerapi': {
+        target: 'http://mbi.sagacloud.cn:8080',
+        changeOrigin: true,
+        pathRewrite: {
+            "^/schedulerapi": "/scheduler/"
+        }
+      },
     },
 
+    // proxyTable: {
+    //     '/admin': {
+    //         target: 'http://172.16.44.235:8080',
+    //         changeOrigin: true,
+    //         pathRewrite: {
+    //             "^/admin": "/"
+    //         }
+    //     },
+    //     '/api': {
+    //         target: 'http://172.16.44.235:8080',
+    //         changeOrigin: true,
+    //         pathRewrite: {
+    //             "^/api": "/"
+    //         }
+    //     },
+    //     '/data-platform-3': {
+    //         // 目标 API 地址
+    //         target: 'http://172.16.42.210:8080/',
+    //         // 如果要代理 websockets
+    //         ws: true,
+    //         // 将主机标头的原点更改为目标URL
+    //         changeOrigin: false
+    //     },
+    //     '/business-space': {
+    //         // 目标 API 地址
+    //         target: 'http://172.16.42.210:8080/',
+    //         // 如果要代理 websockets
+    //         ws: true,
+    //         // 将主机标头的原点更改为目标URL
+    //         changeOrigin: false
+    //     },
+    //     '/pointconfig': {
+    //         // 目标 API 地址
+    //         target: 'http://172.16.44.235:8080/',
+    //         // 如果要代理 websockets
+    //         ws: true,
+    //         // 将主机标头的原点更改为目标URL
+    //         changeOrigin: false
+    //     },
+    //     '/venders-dp': {
+    //         // 目标 API 地址
+    //         target: 'http://172.16.42.210:8080/',
+    //         // 如果要代理 websockets
+    //         ws: true,
+    //         // 将主机标头的原点更改为目标URL
+    //         changeOrigin: false
+    //     },
+    //     '/venders': {
+    //         // 目标 API 地址
+    //         target: 'http://172.16.42.210:8080/',
+    //         // 如果要代理 websockets
+    //         ws: true,
+    //         // 将主机标头的原点更改为目标URL
+    //         changeOrigin: false
+    //     },
+    //     '/ScanBuilding': {
+    //         // 目标 API 地址
+    //         target: 'http://172.16.44.235:8080/',
+    //         // 如果要代理 websockets
+    //         ws: true,
+    //         // 将主机标头的原点更改为目标URL
+    //         changeOrigin: false
+    //     },
+    //     '/image-service': {
+    //         // 目标 API 地址
+    //         target: 'http://172.16.42.210:8080/',
+    //         // 如果要代理 websockets
+    //         ws: true,
+    //         // 将主机标头的原点更改为目标URL
+    //         changeOrigin: false
+    //     },
+    //     '/modelapi': {
+    //         target: 'http://172.16.42.210:8082',
+    //         // target: 'http://192.168.20.218:8082',//景灏
+    //         changeOrigin: true,
+    //         pathRewrite: {
+    //             "^/modelapi": "/"
+    //         }
+    //     },
+    //     '/schedulerapi': {
+    //       target: 'http://172.16.42.210:8081',
+    //       changeOrigin: true,
+    //       pathRewrite: {
+    //           "^/schedulerapi": "/"
+    //       }
+    //     },
+    // },
+
     // Various Dev Server settings
     host: '0.0.0.0', // can be overwritten by process.env.HOST
     port: 28080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined

+ 52 - 52
src/views/data_admin/buildData/index-2.vue

@@ -108,39 +108,39 @@
           <div class="pic_view">
             <div class="swiper-container" id="swiperPic" v-show="tablePicArr.Pic.length">
               <div class="swiper-wrapper">
-                <div class="swiper-slide" v-for="(item,$index) in tablePicArr.Nameplate" :key="item.key">
+                <div class="swiper-slide" v-for="(item,$index) in tablePicArr.Nameplate" :key="item.Key">
                   <div class="img_view">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key" :title="item.name" :alt="item.name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key" :title="item.Name" :alt="item.Name">
                     <i class="iconfont icon-shuaxin icon" @click.stop="changeImgUrl('Nameplate',$index)"></i>
                   </div>
                 </div>
-                <div class="swiper-slide" v-for="(item,$index) in tablePicArr.Pic" :key="item.key">
-                  <div class="img_view" v-if="item.type != 'image_video'">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '铭牌照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '设备正面照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '带二维码的设备远景照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '设备左侧照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '设备右侧照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '设备背面照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '带二维码的设备近景照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '视频资料' && item.type == 'image'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <div v-if="item.type == 'video'" style="width:100%;height:100%;">
-                      <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.key + '?systemId=dataPlatform'" controls
-                        :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.key) +'&width=200'"></video>
+                <div class="swiper-slide" v-for="(item,$index) in tablePicArr.Pic" :key="item.Key">
+                  <div class="img_view" v-if="item.Type != 'image_video'">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '铭牌照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备正面照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '带二维码的设备远景照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备左侧照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备右侧照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备背面照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '带二维码的设备近景照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '视频资料' && item.Type == 'image'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <div v-if="item.Type == 'video'" style="width:100%;height:100%;">
+                      <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.Key + '?systemId=dataPlatform'" controls
+                        :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.Key) +'&width=200'"></video>
                     </div>
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '其他照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                    <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '全景照片'"
-                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '其他照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                    <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '全景照片'"
+                      :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
                     <!-- <i
                           @click="delPic($index)"
                           class="iconfont icon-guanbi"
@@ -216,58 +216,58 @@
                   <!-- //图片排序 -->
                   <ul>
                     <li v-for="(item,index) in imgList.place" v-if="imgList.place.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="(item,index) in imgList.nameplate" v-if="imgList.nameplate.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="(item,index) in imgList.ahead" v-if="imgList.ahead.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="(item,index) in imgList.qrCodeLooger" v-if="imgList.qrCodeLooger.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="(item,index) in imgList.left" v-if="imgList.left.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="(item,index) in imgList.right" v-if="imgList.right.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="(item,index) in imgList.bottom" v-if="imgList.bottom.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="(item,index) in imgList.qrCode" v-if="imgList.qrCode.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="(item,index) in imgList.panorama" v-if="imgList.panorama.length" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
-                    <li v-for="(item,index) in imgList.else" v-if="imgList.else.length && item.type != 'image_video'" class="img_view">
-                      <img @click="seeBig(item.key,item.name,item.type)"
-                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                    <li v-for="(item,index) in imgList.else" v-if="imgList.else.length && item.Type != 'image_video'" class="img_view">
+                      <img @click="seeBig(item.Key,item.Name,item.Type)"
+                        :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                       <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                     </li>
                     <li v-for="item in imgList.video" style="border: 1px solid #ccc;">
-                      <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.key + '?systemId=dataPlatform'" controls
-                        :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.key) +'&width=200'"></video>
+                      <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.Key + '?systemId=dataPlatform'" controls
+                        :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.Key) +'&width=200'"></video>
                     </li>
                   </ul>
                 </div>
@@ -512,7 +512,7 @@ export default {
     },
     delPicPost(name, key) {
       let myInfos = this.infos.Infos[name].map(item => {
-        if (item.key == key) {
+        if (item.Key == key) {
           return undefined
         } else {
           return item

+ 30 - 30
src/views/data_admin/buildData/index.vue

@@ -142,27 +142,27 @@
                     <div class="pic_view">
                         <div class="swiper-container" id="swiperPic" v-show="tablePicArr.Pic.length">
                             <div class="swiper-wrapper">
-                                <div class="swiper-slide" v-for="(item,$index) in tablePicArr.Nameplate" :key="item.key">
+                                <div class="swiper-slide" v-for="(item,$index) in tablePicArr.Nameplate" :key="item.Key">
                                     <div class="img_view">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key" :title="item.name" :alt="item.name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key" :title="item.Name" :alt="item.Name">
                                         <i class="iconfont icon-shuaxin icon" @click.stop="changeImgUrl('Nameplate',$index)"></i>
                                     </div>
                                 </div>
-                                <div class="swiper-slide" v-for="(item,$index) in tablePicArr.Pic" :key="item.key">
-                                    <div class="img_view" v-if="item.type != 'image_video'">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '铭牌照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '设备正面照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '带二维码的设备远景照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '设备左侧照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '设备右侧照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '设备背面照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '带二维码的设备近景照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '视频资料' && item.type == 'image'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <div v-if="item.type == 'video'" style="width:100%;height:100%;">
-                                            <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.key + '?systemId=dataPlatform'" controls :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.key) +'&width=200'"></video>
+                                <div class="swiper-slide" v-for="(item,$index) in tablePicArr.Pic" :key="item.Key">
+                                    <div class="img_view" v-if="item.Type != 'image_video'">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '铭牌照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备正面照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '带二维码的设备远景照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备左侧照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备右侧照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备背面照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '带二维码的设备近景照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '视频资料' && item.Type == 'image'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <div v-if="item.Type == 'video'" style="width:100%;height:100%;">
+                                            <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.Key + '?systemId=dataPlatform'" controls :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.Key) +'&width=200'"></video>
                                         </div>
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '其他照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
-                                        <img v-load @error="setErrorImg" @click="seeBig(item.key,item.name,item.type)" v-if="item.name == '全景照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" :title="item.name" :alt="item.name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '其他照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
+                                        <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '全景照片'" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
                                         <!-- <i
                           @click="delPic($index)"
                           class="iconfont icon-guanbi"
@@ -233,47 +233,47 @@
                                     <!-- //图片排序 -->
                                     <ul>
                                         <li v-for="(item,index) in imgList.place" v-if="imgList.place.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="(item,index) in imgList.nameplate" v-if="imgList.nameplate.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="(item,index) in imgList.ahead" v-if="imgList.ahead.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="(item,index) in imgList.qrCodeLooger" v-if="imgList.qrCodeLooger.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="(item,index) in imgList.left" v-if="imgList.left.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="(item,index) in imgList.right" v-if="imgList.right.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="(item,index) in imgList.bottom" v-if="imgList.bottom.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="(item,index) in imgList.qrCode" v-if="imgList.qrCode.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="(item,index) in imgList.panorama" v-if="imgList.panorama.length" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
-                                        <li v-for="(item,index) in imgList.else" v-if="imgList.else.length && item.type != 'image_video'" class="img_view">
-                                            <img @click="seeBig(item.key,item.name,item.type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.key +'&width=200'" alt>
+                                        <li v-for="(item,index) in imgList.else" v-if="imgList.else.length && item.Type != 'image_video'" class="img_view">
+                                            <img @click="seeBig(item.Key,item.Name,item.Type)" :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
                                             <i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
                                         </li>
                                         <li v-for="item in imgList.video" style="border: 1px solid #ccc;">
-                                            <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.key + '?systemId=dataPlatform'" controls :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.key) +'&width=200'"></video>
+                                            <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.Key + '?systemId=dataPlatform'" controls :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.Key) +'&width=200'"></video>
                                         </li>
                                     </ul>
                                 </div>
@@ -512,7 +512,7 @@
             },
             delPicPost(name, key) {
                 let myInfos = this.infos.Infos[name].map(item => {
-                    if (item.key == key) {
+                    if (item.Key == key) {
                         return undefined
                     } else {
                         return item
@@ -1699,7 +1699,7 @@
                     return arr.map(item => {
                         return {
                             Code: item.code,
-                            Name: item.name
+                            Name: item.Name
                         };
                     });
                 } else {