فهرست منبع

在线查看word

zhuliu 2 سال پیش
والد
کامیت
26f5054e17
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 1 1
      RMS-FrontEnd/src/config/index.js
  2. 5 1
      RMS-FrontEnd/src/views/report/reportDetails/components/basicMessage.vue

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

@@ -1,6 +1,6 @@
 export default {
     baseURL: "/api",
     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',
 }

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

@@ -103,7 +103,11 @@ export default {
           this.FileUrl = this.$p + item.url
           this.srcList = []
         }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){