From 12840ac2415c930db30b6a982fdc373f53be7f88 Mon Sep 17 00:00:00 2001 From: yjl <1490736767@qq.com> Date: Sat, 1 Apr 2023 14:26:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E6=9E=97=E6=B9=BE=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=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 | 6 +- src/store/index.js | 28 +-- .../projectAdmin/jlw/components/CountList.vue | 4 +- .../jlw/digitalSite/centerTop.vue | 30 ++-- .../projectAdmin/jlw/digitalSite/index.vue | 4 + .../jlw/digitalSite/leftBottom.vue | 112 +++++++----- .../projectAdmin/jlw/digitalSite/rightTop.vue | 24 ++- .../jlw/envirManage/rightCenter.vue | 165 +++++++++++++++--- .../jlw/jChart/pie/JNestedRingChart.vue | 3 + .../jlw/safeManage/leftCenter.vue | 37 ++-- 10 files changed, 278 insertions(+), 135 deletions(-) diff --git a/src/assets/js/http.js b/src/assets/js/http.js index c4273443..81d3c981 100644 --- a/src/assets/js/http.js +++ b/src/assets/js/http.js @@ -78,17 +78,17 @@ if (process.env.NODE_ENV == 'development') { // axios.defaults.baseURL = 'http://192.168.34.221:8188' //郭圣雄本地 // axios.defaults.baseURL = 'http://192.168.34.221:8210' //郭圣雄本地 // axios.defaults.baseURL = 'http://192.168.34.221:12346' //郭圣雄本地 - axios.defaults.baseURL = 'http://192.168.34.221:12350' //金林湾本地 + // axios.defaults.baseURL = 'http://192.168.34.221:12350' //金林湾本地 // axios.defaults.baseURL = 'http://192.168.34.122:8070' //彭洁本地 // axios.defaults.baseURL = 'http://101.43.164.214:11111' //百色线上 // axios.defaults.baseURL = 'http://101.43.164.214:12345/#/'//内蒙古线上 - // axios.defaults.baseURL = 'http://121.196.214.246/api'//金林湾线上新 + axios.defaults.baseURL = 'http://121.196.214.246/api/'//金林湾线上新 } else if (process.env.NODE_ENV == 'debug') { axios.defaults.baseURL = 'https://www.ceshi.com' } else if (process.env.NODE_ENV == 'production') { let host = window.location.host - axios.defaults.baseURL = window.location.protocol + '//' + host + '/api'//金林湾地址 + axios.defaults.baseURL = window.location.protocol + '//' + host + '/api/'//金林湾地址 // axios.defaults.baseURL = window.location.protocol + '//' + host + '/' // axios.defaults.baseURL ='http://192.168.34.216:6023/' // axios.defaults.baseURL = window.location.protocol + "//" + host.split(":")[0] + ":6023" + "/" diff --git a/src/store/index.js b/src/store/index.js index ac635365..836b5de0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -45,21 +45,29 @@ export default new Vuex.Store({ PAGESIZRS: [10, 20, 30, 50], // 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/", //正式部署地址 + //---------------- BASEURL: baseUrl ? baseUrl - : window.location.protocol + "//" + window.location.host + "/api", // - // UPLOADURL: - // window.location.protocol + "//" + window.location.host + "/api/upload/image", // - // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //测试 - // tag: 本地测试接口 // BASEURL:'http://192.168.34.174:6023/', + : window.location.protocol + "//" + window.location.host + "/api/", //金林湾部署地址 // UPLOADURL: 'http://182.90.224.237:7000/upload/image', + UPLOADURL: + window.location.protocol + + "//" + + window.location.host + + "/api/upload/image", //金林湾部署地址 + FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //金林湾部署地址 // FILEURL: 'http://182.90.224.237:7000/image/', + // tag: 本地测试接口 // BASEURL:'http://192.168.34.174:6023/', /* 2022-05-16 */ // tag: 部署河南项目时,需要打开这两行代码 // UPLOADURL: 'http://139.9.66.234:6324/`upload/image', // FILEURL: 'http://139.9.66.234:6324/image/', - /* 2022-06-06 广西本地的*/ // UPLOADURL: 'http://182.90.224.237:7000/upload/image', - // FILEURL: 'http://182.90.224.237:7000/image/', - // 邱平毅的 + /* 2022-06-06 广西本地的*/ // 邱平毅的 // BASEURL:'http://192.168.34.116:6023/', // UPLOADURL: 'http://192.168.34.116:6023/upload/image', // FILEURL: 'http://192.168.34.116:6023/image/', @@ -78,8 +86,8 @@ export default new Vuex.Store({ // FILEURL: 'http://139.9.66.234:7072/image/',//三江集团 // UPLOADURL: 'http://182.90.224.147:18170/upload/image',//瑞士恒通 // FILEURL: 'http://182.90.224.147:18170/image/',//瑞士恒通 - UPLOADURL: 'http://121.196.214.246/api/upload/image',//金林湾新地址 - FILEURL: 'http://121.196.214.246/image/',//金林湾新地址 + UPLOADURL: "http://121.196.214.246/api/upload/image", //金林湾新地址 + FILEURL: "http://121.196.214.246/image/", //金林湾新地址 ACCOUNTTYPE: [ "系统管理员", diff --git a/src/views/projectAdmin/jlw/components/CountList.vue b/src/views/projectAdmin/jlw/components/CountList.vue index 73bf9772..34547dda 100644 --- a/src/views/projectAdmin/jlw/components/CountList.vue +++ b/src/views/projectAdmin/jlw/components/CountList.vue @@ -23,11 +23,11 @@