Browse Source

fix: 预测指标库拼接来源无法编辑

Karsa 1 year ago
parent
commit
9d131575d2
1 changed files with 17 additions and 2 deletions
  1. 17 2
      src/views/predictEdb_manage/predictEdb.vue

+ 17 - 2
src/views/predictEdb_manage/predictEdb.vue

@@ -1093,8 +1093,23 @@ export default {
 				} else {
 				} else {
 					//计算指标
 					//计算指标
 					this.setComputedDialogForm(res.Data,type);
 					this.setComputedDialogForm(res.Data,type);
-					this.computed_type =[47,48].includes(Source)?'joint': Source;
-					this.computed_type = [72,73].includes(Source)? 'alpha': Source;
+
+					switch (Source) {
+						case 47: 
+						case 48: 
+							this.computed_type = 'joint';
+							break
+						case 72:
+						case 73:
+							this.computed_type = 'alpha';
+							break
+						default:
+							this.computed_type = Source;
+							break
+					}
+					
+					// this.computed_type =[47,48].includes(Source)?'joint': Source;
+					// this.computed_type = [72,73].includes(Source)? 'alpha': Source;
 				}
 				}
 
 
 			})
 			})