From c36ab4e06e181387186eb215db078f5b628f7284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E5=A6=8D?= <3096114695@qq.com> Date: Tue, 11 Jul 2023 09:29:34 +0800 Subject: [PATCH] =?UTF-8?q?fix=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/http.js | 2 +- src/store/index.js | 16 ++++++++++------ src/views/companyAdmin/docManage.vue | 26 +++++++++++++------------- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/assets/js/http.js b/src/assets/js/http.js index a1ac1e48..a7f15a37 100644 --- a/src/assets/js/http.js +++ b/src/assets/js/http.js @@ -90,7 +90,7 @@ if (process.env.NODE_ENV == 'development') { // axios.defaults.baseURL = 'http://182.90.224.147:15551/'//港投(成润)项目线上(1) // axios.defaults.baseURL = 'http://118.121.198.147:23232/'//港投(成润)正式 // axios.defaults.baseURL ='http://182.90.224.147:100/' //演示平台/ - axios.defaults.baseURL ='http://192.168.34.221:8079' //郭圣雄本地 + axios.defaults.baseURL ='http://192.168.34.221:8070' //郭圣雄本地 // axios.defaults.baseURL ='http://192.168.34.221:30001' //郭圣雄本地 // axios.defaults.baseURL ='http://192.168.34.221:12350/' //金林湾本地 // axios.defaults.baseURL ='http://61.145.163.135:12345' //坪山沙湖 diff --git a/src/store/index.js b/src/store/index.js index 815e1895..25d6e3ed 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -44,17 +44,19 @@ export default new Vuex.Store({ state: { PAGESIZRS: [10, 20, 30, 50], + UPLOADURL:'http://192.168.34.221:8070/upload/image',// 郭正雄 + FILEURL:'http://192.168.34.221:8070/image/',//郭正雄 // UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试 // FILEURL:'http://10.0.1.43:6023/image/',//测试 BASEURL: baseUrl ? baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境 - UPLOADURL: - window.location.protocol + - "//" + - window.location.host + - "/upload/image", //正式环境 - FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境 + // UPLOADURL: + // window.location.protocol + + // "//" + + // window.location.host + + // "/upload/image", //正式环境 + // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境 //--------------------------------------------------------------------------------------------- // BASEURL: baseUrl // ? baseUrl @@ -72,6 +74,8 @@ export default new Vuex.Store({ // UPLOADURL: 'http://139.9.66.234:6324/upload/image', // FILEURL: 'http://139.9.66.234:6324/image/', + + /* 2022-06-06 广西本地的*/ // FILEURL: 'http://182.90.224.237:7000/image/', // 邱平毅的 // BASEURL:'http://192.168.34.116:6023/', diff --git a/src/views/companyAdmin/docManage.vue b/src/views/companyAdmin/docManage.vue index f794427c..c06f23ee 100644 --- a/src/views/companyAdmin/docManage.vue +++ b/src/views/companyAdmin/docManage.vue @@ -98,7 +98,7 @@
下载附件 { - window.location.href = this.$store.state.FILEURL+item; - // }); + // }); // } else { // this.$message.success('未查询到附件') // } - // updateFileDownloadNumApi({ id: item.id }).then((res) => { - // // window.open(this.$store.state.FILEURL+item.filePath) - // // var a = document.createElement("a"); - // // a.href = this.$store.state.FILEURL + item.filePath - // // a.download = item.fileName; - // // a.click(); - // this.$message.error(res.message); - // this.downloadUrl = this.$store.state.FILEURL + item.filePath + updateFileDownloadNumApi({ id: item.id }).then((res) => { + // window.open(this.$store.state.FILEURL+item.filePath) + // var a = document.createElement("a"); + // a.href = this.$store.state.FILEURL + item.filePath + // a.download = item.fileName; + // a.click(); + // this.$message.succe(res.message); + this.downloadUrl = this.$store.state.FILEURL + item.id - // }) + }) }, //查看条数 handleSizeChange(val) {