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