diff --git a/src/main.js b/src/main.js index 8113b8f..9c4aea9 100644 --- a/src/main.js +++ b/src/main.js @@ -99,4 +99,4 @@ new Vue({ * 文件路径 * @type {string} */ -Vue.prototype.$baseUrl = 'http://192.168.0.14:1810/statics' +Vue.prototype.$baseUrl = 'http://10.1.0.142:2000/statics' diff --git a/src/utils/bns-kkFile-preview.js b/src/utils/bns-kkFile-preview.js index 8ddf83f..84b00a9 100644 --- a/src/utils/bns-kkFile-preview.js +++ b/src/utils/bns-kkFile-preview.js @@ -9,7 +9,7 @@ export function lookFaceFile(){ // return 'http://218.21.27.6:1999/file/statics/' //生产服务器 } export function filePreview(){ - return 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器 + return 'http://10.1.0.142:8012/onlinePreview?url=' //14服务器 // return 'http://112.29.103.165:8012/onlinePreview?url=' //1.6演示服务器 // return 'http://218.21.27.6:18013/onlinePreview?url=' } diff --git a/src/views/report/attReport/check.vue b/src/views/report/attReport/check.vue index 68b068a..2c26831 100644 --- a/src/views/report/attReport/check.vue +++ b/src/views/report/attReport/check.vue @@ -565,7 +565,8 @@ export default { var filePath = this.getFilePath(filesVoList, type); var fileName = this.getFileName(filesVoList, type); - var url_=this.$baseUrl + filePath +"?token="+ getToken(); + var url_=this.$baseUrl + filePath ; + // var url_=this.$baseUrl + filePath +"?token="+ getToken(); // var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken(); // window.open(url_) // 根据文件路径打开预览窗口 diff --git a/src/views/report/attReport/index.vue b/src/views/report/attReport/index.vue index 5d9725e..8dab63a 100644 --- a/src/views/report/attReport/index.vue +++ b/src/views/report/attReport/index.vue @@ -926,9 +926,10 @@ export default { var filePath = this.getFilePath(filesVoList, type); var fileName = this.getFileName(filesVoList, type); - var url_=this.$baseUrl + filePath +"?token="+ getToken(); + // var url_=this.$baseUrl + filePath +"?token="+ getToken(); // var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken(); // window.open(url_) + var url_=this.$baseUrl + filePath ; // 根据文件路径打开预览窗口 this.fileView= true; this.kkFilePreview = { diff --git a/src/views/report/attReport/record.vue b/src/views/report/attReport/record.vue index e7f0050..fa5f7d9 100644 --- a/src/views/report/attReport/record.vue +++ b/src/views/report/attReport/record.vue @@ -195,11 +195,12 @@ import {getDetailsRecordList, updateAttDetailsDataExamine,listDept} from "@/api/ import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import { getToken } from '@/utils/auth' +import BnsKkFilePreview from '@/views/bns-kkFile-preview' export default { name: "Record", dicts: ['att_status'], - components: {Treeselect}, + components: {Treeselect,BnsKkFilePreview}, data() { return { // 遮罩层 @@ -433,10 +434,8 @@ export default { var filePath = this.getFilePath(filesVoList, type); var fileName = this.getFileName(filesVoList, type); - var url_=this.$baseUrl + filePath +"?token="+ getToken(); - - console.log("http://192.168.0.14:8100/statics" + filePath +"?token="+ getToken()) - console.log("http://192.168.0.14:1810/statics" + filePath +"?token="+ getToken()) + // var url_=this.$baseUrl + filePath +"?token="+ getToken(); + var url_=this.$baseUrl + filePath ; // var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken(); // window.open(url_) // 根据文件路径打开预览窗口