|
@@ -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
|
|
|
},
|