zhouna 4 年之前
父節點
當前提交
b986164fd2
共有 2 個文件被更改,包括 9 次插入7 次删除
  1. 6 4
      src/components/knowledgeExtra/AddNewRule.vue
  2. 3 3
      src/components/knowledgeExtra/SubConditions.vue

+ 6 - 4
src/components/knowledgeExtra/AddNewRule.vue

@@ -254,6 +254,7 @@
             ruleTermChange(val){        //规则术语类型选中
             ruleTermChange(val){        //规则术语类型选中
                 this.form.parLenCode=val;
                 this.form.parLenCode=val;
                 const obj = this.ruleTermTypeList.find((it)=>it.code===val);
                 const obj = this.ruleTermTypeList.find((it)=>it.code===val);
+                this.form.parLenName=obj.name;
                 this.baseTypeList = obj.subMenuList;
                 this.baseTypeList = obj.subMenuList;
                 this.subRuleMaxNum = obj.number;
                 this.subRuleMaxNum = obj.number;
                 this.setInitGroupData();
                 this.setInitGroupData();
@@ -298,10 +299,11 @@
                     subEqValue:'',
                     subEqValue:'',
                 };
                 };
                 if(this.checkFirstPlace){
                 if(this.checkFirstPlace){
+                    const obj=this.subGroups[0][0];
                     temp = {
                     temp = {
-                        subDescription:this.form.parlibName,
-                        subConceptId:this.form.parConceptId,
-                        subConceptName:this.form.parlibName,
+                        subDescription:obj.subConceptName,
+                        subConceptId:obj.subConceptId,
+                        subConceptName:obj.subConceptName,
                         subLenCode:this.form.parLenCode,
                         subLenCode:this.form.parLenCode,
                         subLenName: this.form.parLenName,
                         subLenName: this.form.parLenName,
                         subLibName: this.form.parlibName,
                         subLibName: this.form.parlibName,
@@ -315,7 +317,7 @@
                         subMinValue:'',
                         subMinValue:'',
                         subEqValue:'',
                         subEqValue:'',
                     };
                     };
-                }
+                }console.log(temp)
                 this.subGroups.push([temp]);
                 this.subGroups.push([temp]);
             },
             },
             delGroup(i){
             delGroup(i){

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

@@ -208,11 +208,11 @@
                 deep:true
                 deep:true
             }
             }
         },
         },
-        created(){console.log(22)
-            this.conceptList=[{conceptName:this.groupData.subLibName,conceptId:this.groupData.subConceptId}];
+        created(){
+            this.conceptList=[{conceptName:this.groupData.subLibName||this.groupData.subConceptName,conceptId:this.groupData.subConceptId}];
             if(this.groupData.subLenCode){
             if(this.groupData.subLenCode){
                 this.baseTermTypeList=[{name:this.groupData.subLenName,code:this.groupData.subLenCode}];
                 this.baseTermTypeList=[{name:this.groupData.subLenName,code:this.groupData.subLenCode}];
-            }
+            };console.log(this.conceptList)
         },
         },
         methods:{
         methods:{
             dataTypeChange(val){
             dataTypeChange(val){