|
@@ -1209,9 +1209,23 @@ export default {
|
|
|
EdbInfoId: data.EdbInfoId
|
|
|
}).then(res => {
|
|
|
if(res.Ret === 200) {
|
|
|
- this.setComputedDialogForm(data.Source,node,data,res.Data);
|
|
|
- this.computed_type = [23,24].includes(data.Source) ? 'joint' : data.Source;
|
|
|
- this.computed_type = [72,73].includes(data.Source)? 'alpha': data.Source;
|
|
|
+ this.setComputedDialogForm(data.Source,res.Data);
|
|
|
+
|
|
|
+ switch (data.Source) {
|
|
|
+ case 23:
|
|
|
+ case 24:
|
|
|
+ this.computed_type = 'joint';
|
|
|
+ break
|
|
|
+ case 72:
|
|
|
+ case 73:
|
|
|
+ this.computed_type = 'alpha';
|
|
|
+ break
|
|
|
+ default:
|
|
|
+ this.computed_type = data.Source;
|
|
|
+ break
|
|
|
+ }
|
|
|
+ // this.computed_type = [23,24].includes(data.Source) ? 'joint' : data.Source;
|
|
|
+ // this.computed_type = [72,73].includes(data.Source)? 'alpha': data.Source;
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -1609,14 +1623,25 @@ export default {
|
|
|
EdbInfoId,
|
|
|
}).then(res => {
|
|
|
if(res.Ret !== 200) return
|
|
|
- this.setComputedDialogForm(Source,node,data,res.Data,true);
|
|
|
- this.computed_type = [23,24].includes(Source) ? 'joint' : Source;
|
|
|
- this.computed_type = [72,73].includes(data.Source)? 'alpha': data.Source;
|
|
|
+ this.setComputedDialogForm(Source,res.Data,true);
|
|
|
+ switch (data.Source) {
|
|
|
+ case 23:
|
|
|
+ case 24:
|
|
|
+ this.computed_type = 'joint';
|
|
|
+ break
|
|
|
+ case 72:
|
|
|
+ case 73:
|
|
|
+ this.computed_type = 'alpha';
|
|
|
+ break
|
|
|
+ default:
|
|
|
+ this.computed_type = data.Source;
|
|
|
+ break
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
|
|
|
/* 设置回显计算指标的表单 */
|
|
|
- setComputedDialogForm(type,node,data,res,view=false) {
|
|
|
+ setComputedDialogForm(type,res,view=false) {
|
|
|
//指标运算 or 其他计算类型指标
|
|
|
|
|
|
// 处理所在目录
|