|
@@ -464,6 +464,7 @@ import { getStore, setStore } from "@/util/store";
|
|
|
tenant_id:'',
|
|
|
projectid:'',
|
|
|
treeId: '',
|
|
|
+ treePid: '',
|
|
|
|
|
|
defaultProps: {
|
|
|
children: "children",
|
|
@@ -608,6 +609,7 @@ import { getStore, setStore } from "@/util/store";
|
|
|
handleNodeClick(data,node) {
|
|
|
|
|
|
this.treeId = data.primaryKeyId;
|
|
|
+ this.treePid = data.id;
|
|
|
|
|
|
this.getRuleItemOptions()
|
|
|
//获取节点展开路径
|
|
@@ -836,9 +838,10 @@ import { getStore, setStore } from "@/util/store";
|
|
|
// parentId: this.ruleItem.id,
|
|
|
// })
|
|
|
console.log(formData,'formData');
|
|
|
-
|
|
|
+ this.addFileRuleLoad=true
|
|
|
add(formData)
|
|
|
.then((res) => {
|
|
|
+ this.addFileRuleLoad=false
|
|
|
if(res.data.code==200){
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
@@ -1314,7 +1317,7 @@ import { getStore, setStore } from "@/util/store";
|
|
|
this.$message.error('请先添加技术指标内容');
|
|
|
return;
|
|
|
}
|
|
|
- this.$refs.linkEleRef.show(this.jsDetail.info, this.treeId,this.id, this.projectid,this.ruleItemDetail.id);
|
|
|
+ this.$refs.linkEleRef.show(this.jsDetail.info, this.treeId,this.id, this.projectid,this.ruleItemDetail.id,this.treePid);
|
|
|
},
|
|
|
confirmLinkEle() {
|
|
|
console.log('确认关联元素')
|