Browse Source

空间接口问题:1: 分区类型接口404; 2: 获取关系是否需要计算

haojianlong 4 years ago
parent
commit
e4ff7f35af
2 changed files with 9 additions and 9 deletions
  1. 1 1
      src/api/scan/request.js
  2. 8 8
      src/views/ledger/spacelist/index.vue

+ 1 - 1
src/api/scan/request.js

@@ -1664,7 +1664,7 @@ export function queryBFloorWithState(param, success) {
 
 // 查询业务空间分区类型包含其他
 export function queryAllZoneType(param, success) {
-  let url = `${baseUrl}/datacenter2/object/zone/type`;
+  let url = `${baseUrl}${dataCenter}/zone/type`;
   http.postJson(url, param, success)
 }
 

+ 8 - 8
src/views/ledger/spacelist/index.vue

@@ -144,7 +144,6 @@ export default {
     };
   },
   created() {
-    // this.init();
     this.getRelations()
     this.childBackParam = this.$route.params;
   },
@@ -250,14 +249,15 @@ export default {
       let pa = {
         Filters: `RelationType in ["bd2sp","fl2sp"];ComputationalState>1`
       }
-      getrelationTypeProject(pa, res => {
-        if (res.Content.length) {
-          this.needCalculate = true;
-        } else {
-          this.needCalculate = false;
+      // 后台暂无接口提供 todo
+      // getrelationTypeProject(pa, res => {
+      //   if (res.Content.length) {
+      //     this.needCalculate = true;
+      //   } else {
+      //     this.needCalculate = false;
           this.init()
-        }
-      })
+      //   }
+      // })
     },
     // 通过选中的tab-Code 获取选中的tab的所有数据
     getItemForType() {