heyang 2 years ago
parent
commit
614fabd3d3
3 changed files with 4 additions and 4 deletions
  1. 2 2
      .env.development
  2. 1 1
      src/utils/request.js
  3. 1 1
      src/views/illegalDetail.vue

+ 2 - 2
.env.development

@@ -13,7 +13,7 @@ VUE_APP_ENV = 'development'
 # 88服务器
 # VUE_APP_BASE_API = '192.168.1.88/labSystem'
 # 43服务器
-# VUE_APP_BASE_API = '192.168.1.43/labSystem/'
+ VUE_APP_BASE_API = '192.168.1.43/labSystem/'
 # 柴
 # VUE_APP_BASE_API = '192.168.1.9:8080'
 # 暨大
@@ -24,7 +24,7 @@ VUE_APP_ENV = 'development'
 #VUE_APP_BASE_API = 'znyj.labcenter.suda.edu.cn/labSystem/'
 # VUE_APP_BASE_API = 'lab.sxitdlc.com/sudalabSystem/'
 #矿大
- VUE_APP_BASE_API = 'lab.sxitdlc.com/labSystem/'
+# VUE_APP_BASE_API = 'lab.sxitdlc.com/labSystem/'
 
 
 

+ 1 - 1
src/utils/request.js

@@ -34,7 +34,7 @@ axios.defaults.withCredentials = false;
 
 // 允许跨域
 axios.defaults.headers.post["Access-Control-Allow-Origin-Type"] = "*";
-//axios.defaults.headers.common["Authorization"] = 'Bearer 78552f9a-a844-4ce6-8a7a-6372b95f1fec';//`Bearer ${localStorage.getItem('access_token')`;
+//axios.defaults.headers.common["Authorization"] = 'Bearer 7730eb65-f547-4811-be73-e0baffe09d4d';//`Bearer ${localStorage.getItem('access_token')`;
  axios.defaults.headers.common["Authorization"] = 'Bearer '+localStorage.getItem('Authorization')+''
 
 //设置超时

+ 1 - 1
src/views/illegalDetail.vue

@@ -189,7 +189,7 @@ export default {
             illegalDetailData[0].unshift('product')
             dataLength=illegalDetailData[0].length-1
             for(var i=0;i<dataLength;i++){
-              dataNum.push({ type: 'bar',barWidth : '6%', itemStyle: { normal: { barBorderRadius: 8}},"label": {"normal": {"show": true,"position": "top",fontSize: 14,color: '#fff',}}, },)
+              dataNum.push({ type: 'bar',barMaxWidth: "20", itemStyle: { normal: { barBorderRadius: 8}},"label": {"normal": {"show": true,"position": "top",fontSize: 14,color: '#fff',}}, },)
             }
           }
           _this.illegalDetailFun(illegalDetailData,dataNum)