Prechádzať zdrojové kódy

Merge branch 'dev_info' into 'master'

Dev info

See merge request spfm-group/spfm-market-front!51
徐兴安 3 rokov pred
rodič
commit
926ddf4e00
2 zmenil súbory, kde vykonal 19 pridanie a 15 odobranie
  1. 14 10
      src/pages/main/performance/common/export.js
  2. 5 5
      vue.config.js

+ 14 - 10
src/pages/main/performance/common/export.js

@@ -315,22 +315,26 @@ function addborderToCell(borders) {
             13: "thick",
         },
     };
-    // console.log('borders', borders)
     for (const bor in borders) {
-        // console.log(bor)
-        if (borders[bor].color.indexOf("rgb") === -1) {
-            border[luckyExcel.type[bor]] = {
-                style: luckyExcel.style[borders[bor].style],
-                color: { argb: borders[bor].color.replace("#", "") },
-            };
+        if (borders[bor]) {
+            if (borders[bor].color.indexOf("rgb") === -1) {
+                border[luckyExcel.type[bor]] = {
+                    style: luckyExcel.style[borders[bor].style],
+                    color: { argb: borders[bor].color.replace("#", "") },
+                };
+            } else {
+                border[luckyExcel.type[bor]] = {
+                    style: luckyExcel.style[borders[bor].style],
+                    color: { argb: borders[bor].color },
+                };
+            }
         } else {
             border[luckyExcel.type[bor]] = {
-                style: luckyExcel.style[borders[bor].style],
-                color: { argb: borders[bor].color },
+                color: "#000000",
+                style: 1,
             };
         }
     }
-
     return border;
 }
 

+ 5 - 5
vue.config.js

@@ -93,7 +93,7 @@ module.exports = {
         proxy: {
             // 开发环境变化可注释 ⬇️⬇️
             "/market/CMK": {
-                target: "http://192.168.3.12:9114",
+                target: "http://192.168.3.25:9114",
                 ws: false,
                 changeOrigin: true,
                 pathRewrite: {
@@ -101,7 +101,7 @@ module.exports = {
                 },
             },
             "/market/mk": {
-                target: "http://192.168.3.12:9114",
+                target: "http://192.168.3.25:9114",
                 ws: false,
                 changeOrigin: true,
                 pathRewrite: {
@@ -109,7 +109,7 @@ module.exports = {
                 },
             },
             "/market/techcentergj": {
-                target: "http://192.168.3.12:9114",
+                target: "http://192.168.3.25:9114",
                 ws: false,
                 changeOrigin: true,
                 pathRewrite: {
@@ -117,7 +117,7 @@ module.exports = {
                 },
             },
             "/mkWangge": {
-                target: "http://192.168.3.12:9114",
+                target: "http://192.168.3.25:9114",
                 ws: false,
                 changeOrigin: true,
                 pathRewrite: {
@@ -135,7 +135,7 @@ module.exports = {
                 // target: 'http://192.168.0.156:9600/',
                 // target: 'http://192.168.2.170:9600/',
                 // target: 'http://192.168.2.169:9600/',
-                target: "http://192.168.0.90:9600",
+                target: "http://192.168.3.228:9600/spfm",
                 changeOrigin: true,
             },
         },