Przeglądaj źródła

多层关联维护删除修改(1464)

zhangxc 6 lat temu
rodzic
commit
cbbf9aa339
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/components/icss/AddMedicalMultRelation.vue

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

@@ -29,7 +29,7 @@
           <el-tree
             :data="list"
             :props="defaultProps"
-            node-key="id"
+            node-key="conceptId"
             default-expand-all
             :expand-on-click-node="false">
             <span class="custom-tree-node" slot-scope="{ node, data }">
@@ -261,7 +261,7 @@ import api from '@api/icss.js';
       remove(node, data) {
           const parent = node.parent;
           const nodeList = parent.data.nodeList || parent.data;
-          const index = nodeList.findIndex(d => d.id === data.id);
+          const index = nodeList.findIndex(d => d.conceptId === data.conceptId);
           nodeList.splice(index, 1);
       },
       message(msg,type){