Browse Source

bug优化

shaun-sheep 5 years ago
parent
commit
56d7cd87ce

+ 1 - 1
src/api/relation/api.js

@@ -77,7 +77,7 @@ export function businessSpaceAll(param) {
   let ProjectId = localStorage.getItem("projectId")
   return fetch({
     method: 'POST',
-    url: `/api/datacenter/relation-calc/${relation_type}${zone_type ? +'/' + zone_type : ''}`,
+    url: `/api/datacenter/relation-calc/${relation_type}?objectTypes=${zone_type ? '/' +zone_type : ''}`,
     data: proId,
     headers: {'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName}
   })

+ 1 - 1
src/components/relation/overview/CardList.vue

@@ -222,8 +222,8 @@
       },
       computed(relation) {
         this.isComputed = relation // 当前要计算的对象
-        this.$emit('calcSpecial', relation)
         if(relation.RelationType) {
+          this.$emit('calcSpecial', relation)
           if (relation.IsSource) {
             this.values.existComputed = `根据现有数据自动计算 <${relation.RelationTypeName}>`
             this.$refs.maintain.dialogTableVisibleMore = true

+ 1 - 0
src/views/relation/overview/index.vue

@@ -169,6 +169,7 @@
         //
         // })
         businessSpaceAll(param).then(res=> {
+          console.log(param,'param===')
           if(res.data.Result === 'failure') {
             this.$message({
               message: '计算失败',