Parcourir la source

图片地址修改

zhulizhen1111 il y a 6 ans
Parent
commit
9b5abece82

+ 1 - 1
src/common/swipe.vue

@@ -5,7 +5,7 @@
 
        <div class="loop-content">
             <div class="contanier" :style="`transform: translateX(-${index * 104}px)`">
-                <img v-for="(item, index) in list" :key="index" :src="item.key?`/data-platform-3/image-service/common/image_get?systemId=dataPlatform&key=${item.key}&width=96&height=95`:``">
+                <img v-for="(item, index) in list" :key="index" :src="item.key?`/image-service/common/image_get?systemId=dataPlatform&key=${item.key}&width=96&height=95`:``">
             </div>
         </div>
 

+ 7 - 4
src/views/asset/index.vue

@@ -8,7 +8,7 @@
               <tr class="RQ">
                 <td>资产二维码</td>
                 <td class="qr-code">
-                  <img :src="Info.infos.EquipQRCode?`/data-platform-3/image-service/common/file_get?systemId=dataPlatform&key=${Info.infos.EquipQRCode}`:'/static/img/noimg.png'">
+                  <img :src="Info.infos.EquipQRCode?`/image-service/image-service/common/file_get?systemId=dataPlatform&key=${Info.infos.EquipQRCode}`:'/static/img/noimg.png'">
                    <p class="download" v-if="Info.infos.EquipQRCode"   @click="downloadFile(Info.infos.EquipQRCode)">下载</p>
                 </td>
                 <td><p v-if="Info.infos.InsuranceNum_his">保险保单 <span >{{Info.infos.InsuranceNum_his.length || 0 }}份</span></p><p v-if="Info.infos.InstallDrawing_his">资产图纸 <span>{{Info.infos.InstallDrawing_his.length || 0 }}份</span></p></td>
@@ -79,7 +79,7 @@
               </div>
              </div>
              <div class="image-content" v-if="Info.infos.Pic && keySrc">
-               <img :src="`/data-platform-3/image-service/common/image_get?systemId=dataPlatform&key=${keySrc}`">
+               <img :src="`/image-service/image-service/common/image_get?systemId=dataPlatform&key=${keySrc}`">
              </div>
 
                <div class="no-right" v-else>
@@ -204,7 +204,10 @@ export default {
       let hostUrl = location.search
       this.objectId = hostUrl.split("&")[0].toString().split("=")[1]
       let pid = hostUrl.split("&")[1].toString().split("=")[1]
-      let secret =  hostUrl.split("&")[2].toString().split("=")[1]
+      let secret = ''
+      if(hostUrl.split("&")[2]){
+         secret =  hostUrl.split("&")[2].toString().split("=")[1]
+      }
       console.log(pid, this.$store.state.projId)
       this.$store.commit('setProId', pid)
       this.$store.commit(`setSecret`, secret)
@@ -267,7 +270,7 @@ export default {
       var photosphere = document.getElementById('container')
       // eslint-disable-next-line
       var PSV = new PhotoSphereViewer({
-        panorama: `/data-platform-3/image-service/common/image_get?systemId=dataPlatform&key=${key}`,
+        panorama: `/image-service/image-service/common/image_get?systemId=dataPlatform&key=${key}`,
         container: photosphere,
         time_anim: false,
         navbar: true,

+ 2 - 2
src/views/main/PompBox.vue

@@ -240,11 +240,11 @@ export default {
         if (i.type.toString().split("/")[0] == 'image') {
           type = 'image'
           url = `${baseUrl}/image-service/common/image_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&key=${fileName}`
-          url1 = `/image-service/common/image_get?systemId=dataPlatform&key=${fileName}`
+          url1 = `/image-service/image-service/common/image_get?systemId=dataPlatform&key=${fileName}`
         } else {
           type = "file"
           url = `${baseUrl}/image-service/common/file_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&key=${fileName}`
-          url1 = `/image-service/common/file_get?systemId=dataPlatform&key=${fileName}`
+          url1 = `/image-service/image-service/common/file_get?systemId=dataPlatform&key=${fileName}`
         }
         let obj = {
           fileName: fileName,

+ 1 - 1
src/views/rooms/RoomEq.vue

@@ -8,7 +8,7 @@
               <p class="eq-type">设备型号: <span>{{item.specification}}</span></p>
           </div>
           <div class="box-right">
-              <img :src="`/data-platform-3/image-service/common/file_get?systemId=dataPlatform&key=${item.equipQRCode}`">
+              <img :src="`/image-service/image-service/common/file_get?systemId=dataPlatform&key=${item.equipQRCode}`">
           </div>
 
           <div class="box-bottom">

+ 2 - 2
src/views/spread/MessageModal.vue

@@ -6,7 +6,7 @@
           <button class="my-btn" @click="exportData">下载</button>
       </div>
        <div class="mod-content" v-else>
-            <img v-if="isQR" :src="`/data-platform-3/image-service/common/file_get?systemId=dataPlatform&key=${isQR}`" alt="">
+            <img v-if="isQR" :src="`/image-service/image-service/common/file_get?systemId=dataPlatform&key=${isQR}`" alt="">
             <button class="my-btn" @click="downQR">下载</button>
      </div>
   </div>
@@ -71,7 +71,7 @@ export default {
       this.$emit('close')
     },
     downQR () {
-      const url = `/data-platform-3/image-service/common/file_get?systemId=dataPlatform&key=${this.isQR}`
+      const url = `/image-service/image-service/common/file_get?systemId=dataPlatform&key=${this.isQR}`
       download(url, 'qr.png')
     },
     exportData () {

+ 6 - 3
src/views/spread/index.vue

@@ -9,7 +9,7 @@
               <tr class="RQ">
                 <td>设备二维码</td>
                 <td class="qr-code">
-                  <img :src="Info.infos.EquipQRCode?`/data-platform-3/image-service/common/file_get?systemId=dataPlatform&key=${Info.infos.EquipQRCode}`:'/static/img/noimg.png'">
+                  <img :src="Info.infos.EquipQRCode?`/image-service/image-service/common/file_get?systemId=dataPlatform&key=${Info.infos.EquipQRCode}`:'/static/img/noimg.png'">
                   <p class="download" v-if="Info.infos.EquipQRCode" @click="downloadFile(Info.infos.EquipQRCode)">下载</p>
                 </td>
                 <td><p v-if="Info.infos.InsuranceNum_his">保险保单 <span>{{Info.infos.InsuranceNum_his.length || 0 }}份</span></p><p v-if="Info.infos.InstallDrawing_his">安装图纸 <span>{{Info.infos.InstallDrawing_his.length || 0 }}份</span></p><p v-if="Info.infos.Drawing_his">设备图纸 <span>{{Info.infos.Drawing_his.length || 0 }}份</span></p></td>
@@ -229,7 +229,10 @@ export default {
       let hostUrl = location.search
       this.objectId = hostUrl.split("&")[0].toString().split("=")[1]
       let pid = hostUrl.split("&")[1].toString().split("=")[1]
-      let secret =  hostUrl.split("&")[2].toString().split("=")[1]
+      let secret = ''
+      if(hostUrl.split("&")[2]){
+         secret =  hostUrl.split("&")[2].toString().split("=")[1]
+      }
       console.log(pid, this.$store.state.projId,secret)
       this.$store.commit('setProId', pid)
       this.$store.commit(`setSecret`, secret)
@@ -413,7 +416,7 @@ export default {
       var div = document.getElementById('container')
       // eslint-disable-next-line
       var PSV = new PhotoSphereViewer({
-        panorama: `/data-platform-3/image-service/common/image_get?systemId=dataPlatform&key=${key}`,
+        panorama: `/image-service/image-service/common/image_get?systemId=dataPlatform&key=${key}`,
         container: div,
         time_anim: false,
         navbar: true,

+ 4 - 1
src/views/system/index.vue

@@ -117,7 +117,10 @@ export default {
       let hostUrl = location.search
       this.objectId = hostUrl.split("&")[0].toString().split("=")[1]
       let pid = hostUrl.split("&")[1].toString().split("=")[1]
-      let secret =  hostUrl.split("&")[2].toString().split("=")[1]
+      let secret = ''
+      if(hostUrl.split("&")[2]){
+         secret =  hostUrl.split("&")[2].toString().split("=")[1]
+      }
       this.$store.commit('setProId', pid)
       this.$store.commit(`setSecret`, secret)
       console.log(pid, this.$store.state.projId,this.$store.state.secret)

+ 1 - 1
src/views/vr/PicSwipe.vue

@@ -6,7 +6,7 @@
        <div class="loop-content">
             <div class="contanier" :style="`transform: translateX(-${index * 180}px)`">
                 <span  v-for="(item, index) in list" :key="index">
-                    <img :src="item.key?`/data-platform-3/image-service/common/image_get?systemId=dataPlatform&key=${item.key}&width=96&height=95`:``" @click="onClick(item)">
+                    <img :src="item.key?`/image-service/image-service/common/image_get?systemId=dataPlatform&key=${item.key}&width=96&height=95`:``" @click="onClick(item)">
                     <span class="alt-name">{{item.name}}</span>
                 </span>
 

+ 6 - 3
src/views/vr/index.vue

@@ -9,7 +9,7 @@
               <tr class="RQ">
                 <td>空间二维码</td>
                 <td class="qr-code">
-                  <img :src="Info.infos.RoomQRCode?`/data-platform-3/image-service/common/file_get?systemId=dataPlatform&key=${Info.infos.RoomQRCode}`:'/static/img/noimg.png'">
+                  <img :src="Info.infos.RoomQRCode?`/image-service/image-service/common/file_get?systemId=dataPlatform&key=${Info.infos.RoomQRCode}`:'/static/img/noimg.png'">
                   <p class="download" v-if="Info.infos.RoomQRCode"  @click="downloadFile(Info.infos.RoomQRCode)">下载</p>
                 </td>
               </tr>
@@ -206,7 +206,10 @@ export default {
       let hostUrl = location.search
       this.objectId = hostUrl.split("&")[0].toString().split("=")[1]
       let pid = hostUrl.split("&")[1].toString().split("=")[1]
-      let secret =  hostUrl.split("&")[2].toString().split("=")[1]
+      let secret = ''
+      if(hostUrl.split("&")[2]){
+         secret =  hostUrl.split("&")[2].toString().split("=")[1]
+      }
       console.log(pid, this.$store.state.projId)
       this.$store.commit('setProId', pid)
       this.$store.commit(`setSecret`, secret)
@@ -487,7 +490,7 @@ export default {
       // let baseUrl = this.$store.state.baseUrl
       // eslint-disable-next-line
       var PSV = new PhotoSphereViewer({
-        panorama: `/data-platform-3/image-service/common/image_get?systemId=dataPlatform&key=${key}`,
+        panorama: `/image-service/image-service/common/image_get?systemId=dataPlatform&key=${key}`,
         container: div,
         time_anim: false,
         navbar: true,