瀏覽代碼

在线查看word

zhuliu 2 年之前
父節點
當前提交
26f5054e17

+ 1 - 1
RMS-FrontEnd/src/config/index.js

@@ -1,6 +1,6 @@
 export default {
 export default {
     baseURL: "/api",
     baseURL: "/api",
     host: window.location.host,
     host: window.location.host,
-    staticURL: process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:8084' : (process.env.NODE_ENV === 'test'?'http://139.224.24.90:8083':'http://192.168.1.24:8084'),
+    staticURL: process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:8084' : (process.env.NODE_ENV === 'test'?'http://192.168.1.24:8084':'http://192.168.1.24:8084'),
     staticURL2: process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:8081' : 'http://139.224.24.90:8081',
     staticURL2: process.env.NODE_ENV === 'production' ? 'http://139.224.24.90:8081' : 'http://139.224.24.90:8081',
 }
 }

+ 5 - 1
RMS-FrontEnd/src/views/report/reportDetails/components/basicMessage.vue

@@ -103,7 +103,11 @@ export default {
           this.FileUrl = this.$p + item.url
           this.FileUrl = this.$p + item.url
           this.srcList = []
           this.srcList = []
         }else{
         }else{
-          downLoad2(item.url) 
+          this.FileUrl =  'http://192.168.1.24:8012/onlinePreview?url='+ btoa(encodeURIComponent(this.$p + item.url))
+          console.log(this.FileUrl,this.$p + item.url)
+          this.srcList = []
+          this.FileVisible = true
+          // downLoad2(item.url) 
         }
         }
       },
       },
         delFile(id){
         delFile(id){