zhouna 4 years ago
parent
commit
e92009e0f7
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/components/knowledgeExtra/SubConditions.vue

+ 4 - 4
src/components/knowledgeExtra/SubConditions.vue

@@ -183,13 +183,13 @@
             },
             'firstPlace':function(val){
                 if(!val)return;
-                /*const str=localStorage.getItem("zskDicts");
+                const str=localStorage.getItem("zskDicts");
                 const arr=str.split(",");
-                arr*/
-                const sub = this.baseTypes.find((it)=>it.firstPlace===1);
+                //arr
+                const sub = this.baseTypes.find((it)=>it.ruleType===3);
                 this.groupData.subType=sub.type;
                 this.baseTermTypeList =sub.subMenuList;
-                this.groupData.subLenCode=this.baseTermTypeList.find((it)=>it.firstPlace===1).code;
+                this.groupData.subLenCode=this.baseTermTypeList.find((it)=>it.ruleType===3).code;
                 this.conceptList=[val];
                 this.groupData.subDescription=val.conceptName;
                 this.groupData.subConceptId = val.conceptId;