Browse Source

adm:feat > 解决设备台账bim坐标点击弹窗问题

shaun-sheep 4 years ago
parent
commit
859a88ba69

+ 6 - 6
config/index.js

@@ -294,18 +294,18 @@ module.exports = {
       },
       '/image-service': {
         // 目标 API 地址
-        target: 'http://60.205.177.43:8080/',
-        // target: 'http://api.sagacloud.cn',
+        // target: 'http://60.205.177.43:8080/',
+        target: 'http://api.sagacloud.cn',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
         changeOrigin: false,
-        // pathRewrite: {
-        //   "^/image-service": "/dp-auxiliary/image-service/"
-        // }
         pathRewrite: {
-          "^/image-service": "/image-service/"
+          "^/image-service": "/dp-auxiliary/image-service/"
         }
+        // pathRewrite: {
+        //   "^/image-service": "/image-service/"
+        // }
       },
       '/modelapi': {
         // target: 'http://172.16.42.210:8082',

+ 1 - 1
src/components/ledger/handsontables/device.vue

@@ -1319,7 +1319,7 @@ export default {
           }
           return false;
         //BIM模型中坐标(bimLocation)
-        case "BIMLocation":
+        case "bimLocation":
           this.bimcodeobj = this.tableData[row.row];
           if (Object.keys(this.bimcodeobj).length > 0) {
             this.myDialog.bimcode = true;

+ 1 - 1
src/components/ready/buildfloor/formItems.vue

@@ -10,7 +10,7 @@
 
           <el-input
             v-model="form[item.path]"
-            v-if="item.infoPointCode == 'BIMLocation' || item.infoPointCode =='ModelID'"
+            v-if="item.infoPointCode == 'bimLocation' || item.infoPointCode =='modelId'"
             disabled/>
 
           <!--二维码相关-->

+ 5 - 5
src/utils/handsontable/delType.js

@@ -31,10 +31,10 @@ let switchRenderer = (instance, td, row, col, prop, value, cellProperties) => {
 
 
 /**
- * 
- * @param {表头数组} arr 
+ *
+ * @param {表头数组} arr
  * @param {添加的参数} '
- * 
+ *
  * @returns {对应数组} arr
  */
 
@@ -45,7 +45,7 @@ export function showTypes(arr, infosKey = '') {
             item.FirstTag == "运行参数") {
             return undefined
         }
-        if (item.InfoPointCode == "BIMLocation") {
+        if (item.InfoPointCode == "bimLocation") {
             return undefined
         }
         if (item.Visible) {
@@ -218,4 +218,4 @@ let lookQRCode = (instance, td, row, col, prop, value, cellProperties) => {
     td.style.cursor = "pointer";
     td.innerHTML = "编辑"
     return td
-}
+}