zhouna 4 سال پیش
والد
کامیت
73365af50d
2فایلهای تغییر یافته به همراه11 افزوده شده و 15 حذف شده
  1. 10 9
      src/components/knowledgeExtra/AddNewRule.vue
  2. 1 6
      src/components/knowledgeExtra/SubConditions.vue

+ 10 - 9
src/components/knowledgeExtra/AddNewRule.vue

@@ -264,14 +264,16 @@
             },
             addGroup(){
                 this.subGroups.push([{
-                    name:'',
-                    ruleType:'',
-                    termType:'',
-                    normTerm:'',
-                    type:'',
-                    max:'',
-                    min:'',
-                    text:''
+                    subDescription:'',
+                    parRuleType:'',
+                    subConceptId:'',
+                    subType:'',
+                    /*subMaxOperator:'',
+                    subMaxUnit:'',
+                    subMaxValue:'',
+                    subMinOperator:'',
+                    subMinUnit:'',
+                    subMinValue:''*/
                 }]);
             },
             delGroup(i){
@@ -307,7 +309,6 @@
                     if (valid) {
                         this.form.klRuleByIdSub=undefined;
                         this.form.klRuleInfoSaveSub = this.form.parHasSub?this.formatGroups():undefined;
-                        this.form.parConceptId = this.form.parConceptId.conceptId;
                         let params = this.form;
                         if(this.parId){//修改/复制
                             params = Object.assign({},this.form,{id:this.isCopy?undefined:this.parId})

+ 1 - 6
src/components/knowledgeExtra/SubConditions.vue

@@ -189,7 +189,7 @@
                 this.baseTermTypeList =sub.subMenuList;
                 this.groupData.subLenCode=this.baseTermTypeList.find((it)=>it.firstPlace===1).code;
                 this.conceptList=[val];
-                this.subDescription=val.conceptName;
+                this.groupData.subDescription=val.conceptName;
                 this.groupData.subConceptId = val.conceptId;
                 this.groupData.subConceptName = val.conceptName;
             }
@@ -203,11 +203,6 @@
             }
         },
         methods:{
-            selectedConcept(val,f){
-                this.groupData.subConceptId=val;
-                //this.groupData.subLibName='333';
-                console.log(val)
-            },
             subTypeChange(val){
                 this.dataType='';
                 this.groupData.subLibName='';