Browse Source

关联元素获取表单报错修改

duy 1 month ago
parent
commit
e514a73cb4
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/views/codeRule/ruleManage.vue

+ 8 - 0
src/views/codeRule/ruleManage.vue

@@ -580,6 +580,7 @@ import { getStore, setStore } from "@/util/store";
         this.projectid = projectid;
         this.defaultExpandedKeys = getStore({ name: this.expandName });
         this.curreenttid= getStore({ name:'curreenttid' });
+        this.treePid = getStore({ name:'treePid' });
         if (this.curreenttid) {
           this.treeId = this.curreenttid;
           this.getRuleItemOptions();
@@ -628,6 +629,11 @@ import { getStore, setStore } from "@/util/store";
           name: 'curreenttid',
           content: data.primaryKeyId,
           type: true, //sessionStorage
+        });
+        setStore({
+          name: 'treePid',
+          content: data.id,
+          type: true, //sessionStorage
         });
           this.isShowList = true;
           this.isShowDetail=false
@@ -1334,6 +1340,8 @@ import { getStore, setStore } from "@/util/store";
         this.$message.error('请先添加技术指标内容');
         return;
       }
+      console.log(this.treePid,'this.treePid)');
+      
         this.$refs.linkEleRef.show(this.jsDetail.info, this.treeId,this.id,  this.projectid,this.ruleItemDetail.id,this.treePid);
     },
     confirmLinkEle() {