Browse Source

adm:feat > 修改厂商库信息,信息可手动输入

shaun-sheep 4 years ago
parent
commit
8de28fa83b
2 changed files with 29 additions and 33 deletions
  1. 5 9
      config/index.js
  2. 24 24
      src/utils/handsontable/notShow.js

+ 5 - 9
config/index.js

@@ -219,7 +219,7 @@ module.exports = {
       '/data-platform-3': {
         // 目标 API 地址
         // target: 'http://172.16.42.210:8080/',
-        target: 'http://api.sagacloud.cn/',
+        target: 'http://39.97.179.199:9909/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -237,8 +237,7 @@ module.exports = {
       '/business-space': {
         // 目标 API 地址
         // target: 'http://172.16.42.210:8080/',
-        target: 'http://api.sagacloud.cn/',
-
+        target: 'http://39.97.179.199:9909',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -256,7 +255,7 @@ module.exports = {
       '/venders-dp': {
         // 目标 API 地址
         // target: 'http://172.16.42.210:8080/',
-        target: 'http://api.sagacloud.cn/',
+        target: 'http://39.97.179.199:9909',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -265,14 +264,11 @@ module.exports = {
       '/venders': {
         // 目标 API 地址
         // target: 'http://172.16.42.210:8080/',
-        target: 'http://api.sagacloud.cn/',
+        target: 'http://39.97.179.199:9909',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
         changeOrigin: false,
-        pathRewrite: {
-          "^/venders": "/dp-auxiliary/venders/"
-        }
       },
       '/ScanBuilding': {
         // 目标 API 地址
@@ -303,7 +299,7 @@ module.exports = {
       },
       '/image-service': {
         // 目标 API 地址
-        target: 'http://60.205.177.43:28888/',
+        target: 'http://39.97.179.199:8888',
         // target: 'http://api.sagacloud.cn',
         // 如果要代理 websockets
         ws: true,

+ 24 - 24
src/utils/handsontable/notShow.js

@@ -239,9 +239,9 @@ const showTools = {
    *
    */
   headerTextFilter(arr, type, onlyRead, showType, taizhang = false) {
-    if (taizhang && !onlyRead) {
-      arr = this.arrToArr(arr, showType)
-    }
+    // if (taizhang && !onlyRead) {
+    //   arr = this.arrToArr(arr, showType)
+    // }
     let data = arr.map(item => {
       // if (type == "property" && item.firstTag == "RunParam") { //资产台账不显示运行参数
       //     return undefined
@@ -258,9 +258,9 @@ const showTools = {
           return undefined
         }
       } else { //编辑模式
-        if (taizhang && !this.filterFirm(item.code)) {
-          return undefined
-        }
+        // if (taizhang && !this.filterFirm(item.code)) {
+        //   return undefined
+        // }
         if (!this.filterUnshow(onlyRead, type, item.code)) { //过滤固定不显示字段
           return undefined
         }
@@ -284,9 +284,9 @@ const showTools = {
     return data
   },
   headerTypeFilter(arr, type, onlyRead, showType, taizhang = false) {
-    if (taizhang && !onlyRead) {
-      arr = this.arrToArr(arr, showType)
-    }
+    // if (taizhang && !onlyRead) {
+    //   arr = this.arrToArr(arr, showType)
+    // }
     text.readOnly = onlyRead;
     let data = arr.map(item => {
       // if (type == "property" && item.firstTag == "runParam") { //资产台账不显示运行参数
@@ -304,9 +304,9 @@ const showTools = {
           return undefined
         }
       } else { //编辑模式
-        if (taizhang && !this.filterFirm(item.code)) {
-          return undefined
-        }
+        // if (taizhang && !this.filterFirm(item.code)) {
+        //   return undefined
+        // }
         if (!this.filterUnshow(onlyRead, type, item.code)) { //过滤固定不显示字段
           return undefined
         }
@@ -491,18 +491,18 @@ const showTools = {
     }
 
     //四大厂商
-    if (
-      item.code == "dpSupplierId" ||
-      item.code == "dpMaintainerId" ||
-      item.code == "dpInsurerId" ||
-      item.code == "dpManufacturerId"
-    ) {
-      return {
-        data: item.path,
-        renderer: text.idType,
-        readOnly: !item.editable
-      }
-    }
+    // if (
+    //   item.code == "dpSupplierId" ||
+    //   item.code == "dpMaintainerId" ||
+    //   item.code == "dpInsurerId" ||
+    //   item.code == "dpManufacturerId"
+    // ) {
+    //   return {
+    //     data: item.path,
+    //     renderer: text.idType,
+    //     readOnly: !item.editable
+    //   }
+    // }
     if (!item.category) {
       console.log('新版字典无输入类型', item)
     }