Pārlūkot izejas kodu

修改多层关联维护

zhangxc 6 gadi atpakaļ
vecāks
revīzija
84c0e46816
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2 4
      src/components/icss/AddMedicalMultRelation.vue

+ 2 - 4
src/components/icss/AddMedicalMultRelation.vue

@@ -196,10 +196,8 @@ import api from '@api/icss.js';
           } else if(type == '2') { //移除节点的时候同时移除节点(搜索时排除的id列表)
             newChild = nodeList[i].conceptId
           }
-          if(this.level === 4) {
-            return
-          }
-          if(nodeList[i].nodeList &&nodeList[i].nodeList.length > 0) {
+          
+          if(nodeList[i].nodeList &&nodeList[i].nodeList.length > 0&&this.level < 3) {
             if(type == '0' || type =='1') {
               this.IteraNodeList(nodeList[i].nodeList,  newChild.nodeList, type, level+1)
             } else if(type == '2') {