Просмотр исходного кода

edit 删除控制台打印及多余代码

reaper 4 лет назад
Родитель
Сommit
266b182773

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

@@ -35,7 +35,7 @@
       :title="title"
       :param="$route.params"
       linkTo="ZskRuleManager"
-    ></crumbs>
+    ></crumbs>  
     <div class="AddRuleContent">
       <el-form size="mini" :model="form" :rules="rules" ref="ruleForm">
         <!-- <div class="table_form"> -->
@@ -257,11 +257,9 @@ export default {
         { conceptName: this.form.parlibName, conceptId: this.form.parConceptId }
       ];
       if (this.form.parConceptId && this.checkFirstPlace && this.conceptList) {
-        console.log("this.conceptList", this.conceptList);
         this.firstPlace = this.conceptList.find(
           (it) => it.conceptId === this.form.parConceptId
         );
-        console.log("firstPlace", this.firstPlace);
         if (this.firstPlace) {
           this.firstPlace["checkedType"] = this.ruleTermCodeStr;
         }
@@ -294,7 +292,6 @@ export default {
         }
 
         // disable
-        console.log(this.form.parHasSub, 1312321, this.firstPlace);
         if (arr[i - 1] && arr[i - 1].groupId == item.groupId) {
           this.$set(item, "disabled", false);
         } else {
@@ -304,7 +301,6 @@ export default {
     },
     // 提交
     submitForm(formName) {
-      console.log("???????????????");
       this.$refs[formName].validate((valid) => {
         if (valid) {
           let params = JSON.parse(JSON.stringify(this.form));
@@ -332,7 +328,6 @@ export default {
             params.parId = this.isCopy ? undefined : this.parId;
             params.parStatus = this.isCopy ? 1 : this.form.parStatus;
           }
-          console.log(params);
           this.saveRule(params);
         } else {
           return false;
@@ -364,12 +359,9 @@ export default {
     },
     // 医学标准术语
     parConceptIdChange(val) {
-      console.log(this.form.klRuleByIdSub);
       this.$nextTick(() => {
         if (val && this.checkFirstPlace && this.conceptList) {
-          console.log("this.conceptList", this.conceptList);
           this.firstPlace = this.conceptList.find((it) => it.conceptId === val);
-          console.log("firstPlace", this.firstPlace);
           if (this.firstPlace) {
             this.firstPlace["checkedType"] = this.ruleTermCodeStr;
           }
@@ -396,7 +388,6 @@ export default {
               const subobj = this.baseTypeList.find(
                 (it) => it.type == types[2]
               );
-              console.log("adwafvadc", subobj);
               this.$set(item, "baseTermTypeList", subobj.subMenuList);
               this.$set(item, "subLenCode", types[1]);
               this.$set(item, "subDescription", this.firstPlace.conceptName);
@@ -515,7 +506,6 @@ export default {
           this.$set(obj, "disabled", true);
           this.$set(obj, "subType", parseInt(types[2]));
           const subobj = this.baseTypeList.find((it) => it.type == types[2]);
-          console.log("adwafvadc", subobj);
           this.$set(obj, "baseTermTypeList", subobj.subMenuList);
           this.$set(obj, "subLenCode", types[1]);
           this.$set(obj, "subDescription", this.firstPlace.conceptName);
@@ -622,79 +612,6 @@ export default {
       return this.dict.indexOf(this.ruleTermCodeStr) > -1;
     }
   },
-  watch: {
-    // "form.parRuleType": function (val) {
-    //   const obj = this.ruleTypeList.find((it) => it.id === val);
-    //   this.ruleTermTypeList = obj.subMenuList;
-    //   console.log("this.ruleTermTypeList", this.ruleTermTypeList);
-    // },
-    // "form.parLenCode": function (val) {
-    //   if (!val) {
-    //     this.baseTypeList = [];
-    //     return;
-    //   }
-    //   const obj = this.ruleTermTypeList.find((it) => it.code === val);
-    //   this.baseTypeList = obj.subMenuList;
-    //   this.subRuleMaxNum = obj.number;
-    // },
-    // firstPlace: {
-    //   handler: function (val) {
-    //     console.log(val);
-    //     console.log(this.form.klRuleByIdSub);
-    //     if (!val) return;
-    //     const dict =
-    //       localStorage
-    //         .getItem("zskDicts")
-    //         .match(new RegExp(val.checkedType + "-\\d+", "g")) || [];
-    //     const types = dict[0].split("-");
-    //     console.log('types',types);
-    //     this.form.klRuleByIdSub.forEach((item,i,arr)=>{
-    //       if (!arr[i - 1]) {
-    //           // item.disabled = true;
-    //           this.$set(item, "subType", parseInt(types[2]));
-    //           this.$set(item, "subLenCode", types[1]);
-    //           this.$set(item, "subDescription", val.conceptName);
-    //           this.$set(item, "subConceptId", val.conceptId);
-    //           this.$set(item, "subConceptName", val.conceptName);
-    //           this.$set(item, "conceptList", [val]);
-    //         }
-    //     })
-    //   },
-    //   deep: true
-    // },
-    // "form.parConceptId": function (val) {
-    //   // setTimeout(() => {
-    //     if (val && this.checkFirstPlace && this.conceptList) {
-    //       console.log("this.conceptList", this.conceptList);
-    //       this.firstPlace = this.conceptList.find((it) => it.conceptId === val);
-    //       console.log("firstPlace", this.firstPlace);
-    //       if (this.firstPlace) {
-    //         this.firstPlace["checkedType"] = this.ruleTermCodeStr;
-    //       }
-    //     } else if (!val) {
-    //       this.setInitGroupData();
-    //       this.firstPlace = null;
-    //     } else {
-    //       this.firstPlace = null;
-    //     }
-    //   // }, 500);
-    // }
-  },
-  mounted() {
-    // this.$watch("form.parConceptId", function (val) {
-    //   if (val && this.checkFirstPlace && this.conceptList) {
-    //     console.log("this.conceptList", this.conceptList);
-    //     this.firstPlace = this.conceptList.find((it) => it.conceptId === val);
-    //     console.log("firstPlace", this.firstPlace);
-    //     this.firstPlace["checkedType"] = this.ruleTermCodeStr;
-    //   } else if (!val) {
-    //     this.setInitGroupData();
-    //     this.firstPlace = null;
-    //   } else {
-    //     this.firstPlace = null;
-    //   }
-    // });
-  },
   components: { AddNewRuleTable }
 };
 </script>

+ 0 - 11
src/components/knowledgeExtra/AddNewRuleTable.vue

@@ -582,7 +582,6 @@ export default {
     },
     // 医学标准术语
     searchConcept(val) {
-      console.log(val);
       const param = {
         excludedConceptIds: [
           this.klRuleByIdSub[this.subConceptIdIndex].subType
@@ -666,20 +665,10 @@ export default {
   created() {
     this.numTypes = localStorage.getItem("zskNumDict");
     this.getSpanArr(this.klRuleByIdSub);
-    console.log("maxNum", this.maxNum);
-    console.log("c_created", this.klRuleByIdSub);
   },
   beforeUpdate() {
     this.getSpanArr(this.klRuleByIdSub);
   },
-  watch: {
-    klRuleByIdSub: {
-      handler(val, old) {
-        console.log("afaw", val, old);
-      },
-      deep: true
-    }
-  },
   props: {
     klRuleByIdSub: {
       type: Array,