Browse Source

bug检测

shaun-sheep 5 years ago
parent
commit
b94651546c
1 changed files with 11 additions and 8 deletions
  1. 11 8
      src/components/relation/overview/CardList.vue

+ 11 - 8
src/components/relation/overview/CardList.vue

@@ -223,14 +223,18 @@
       computed(relation) {
         this.isComputed = relation // 当前要计算的对象
         this.$emit('calcSpecial', relation)
-        if (relation.IsSource) {
-          this.values.existComputed = `根据现有数据自动计算 <${relation.RelationTypeName}>`
-          this.$refs.maintain.dialogTableVisibleMore = true
-          this.$refs.maintain.showCascader()
-
+        if(relation.RelationType) {
+          if (relation.IsSource) {
+            this.values.existComputed = `根据现有数据自动计算 <${relation.RelationTypeName}>`
+            this.$refs.maintain.dialogTableVisibleMore = true
+            this.$refs.maintain.showCascader()
+          } else {
+            this.values.autoComputed = `根据现有数据自动计算 <${relation.RelationTypeName}>`
+            this.$refs.maintain.dialogTableVisible = true
+          }
         } else {
-          this.values.autoComputed = `根据现有数据自动计算 <${relation.RelationTypeName}>`
-          this.$refs.maintain.dialogTableVisible = true
+          this.$message.warning("设计中")
+          return false
         }
       },
       equipment() {
@@ -255,7 +259,6 @@
             this.$message.warning("设计中")
             return false
           }
-
         }
         this.ManualMaintenance = relation
       },