瀏覽代碼

修改多层关联维护三层控制

zhangxc 6 年之前
父節點
當前提交
44a9b18207
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/icss/AddMedicalMultRelation.vue

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

@@ -181,7 +181,7 @@ import api from '@api/icss.js';
         })
       },
       IteraNodeList(nodeList,  nodeListResult, type, level = 1) {
-        this.level= this.level + 1
+        this.level= level + 1
         for(let i = 0; i <nodeList.length; i++) {
           let newChild;
           if(type == '0') { //添加的时候保存所有的id列表
@@ -192,7 +192,7 @@ import api from '@api/icss.js';
           } else if(type == '2') { //移除节点的时候同时移除节点(搜索时排除的id列表)
             newChild = nodeList[i].conceptId
           }
-          if(this.level === 3) {
+          if(this.level === 4) {
             return
           }
           if(nodeList[i].nodeList &&nodeList[i].nodeList.length > 0) {