1178232204@qq.com 3 년 전
부모
커밋
1bcc1e8b13
1개의 변경된 파일21개의 추가작업 그리고 1개의 파일을 삭제
  1. 21 1
      src/components/knowledgeExtra/AddNewRule.vue

+ 21 - 1
src/components/knowledgeExtra/AddNewRule.vue

@@ -457,9 +457,29 @@ export default {
               if (del.length > 0) {
                 this.$set(item, 'baseTypes', screenArr);
                 if (item.subType == delType[2]) {
-                  this.$set(item, 'subType', '');
+                  this.$set(this.form.klRuleByIdSub, i, {
+                    groupId:item.groupId,
+                    groupChildId: 'child' + new Date().valueOf(),
+                    baseTypes:screenArr,
+                    baseTermTypeList: [],
+                    conceptList: [],
+                    subDescription: '',
+                    parRuleType: '',
+                    subConceptId: '',
+                    subType: '',
+                    subMaxOperator: '',
+                    subMaxUnit: '',
+                    subMaxValue: '',
+                    subMinOperator: '',
+                    subMinUnit: '',
+                    subMinValue: '',
+                    subEqValue: '',
+                    subLenCode: '',
+                    dataType: ''
+                  });
                 }
               }
+              
             } else {
               this.$set(item, 'disabled', true);
               this.$set(item, 'subType', parseInt(types[2]));