瀏覽代碼

空间台账空间内的设备修改

haojianlong 4 年之前
父節點
當前提交
3e3226db34

+ 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',

+ 3 - 3
src/components/business_space/newAddDialogs/addEquipDialog.vue

@@ -163,7 +163,7 @@ export default {
         delete pa.data.filters
       }
       if (this.showType) {
-        if (this.type == "Equipment") {
+        if (this.type == "equipment") {
           // pa.data.Cascade.push({ Name: "zoneSpaceInBase" })
           pa.data.cascade = [{ Name: "equipCategory" }];
           getEqNotInSpace(pa, res => {
@@ -179,7 +179,7 @@ export default {
           })
         }
       } else {
-        if (this.type == "Equipment") {
+        if (this.type == "equipment") {
           pa.data.cascade.push({ Name: "zoneSpaceInBase" })
           notEqInSpaceQuery(pa, res => {
             this.loading = false
@@ -225,7 +225,7 @@ export default {
       this.selections.map(t => {
         pa.data.equipIdList.push(t.id)
       })
-      if (this.type == "Equipment") {
+      if (this.type == "equipment") {
         eqInSpaceCreate(pa, res => {
           this.successCallback()
         })

+ 0 - 3
src/components/business_space/newTables/eqToSpaceTable.vue

@@ -146,9 +146,6 @@ export default {
       }
       zoneQuery(pa, res => {
         this.loading = false;
-        console.log(88888888888);
-        console.log(res);
-        console.log(this.type);
         this.tableData = res.content[0][this.type] || []
         this.tableData.map(t => {
           t.spaceId = res.content[0].id