Quellcode durchsuchen

父节点取消加载修改

duy vor 4 Wochen
Ursprung
Commit
e3f490928f
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      src/views/data-fill/division.vue

+ 2 - 1
src/views/data-fill/division.vue

@@ -1295,11 +1295,12 @@ const treeLoadNode = async ({ node, item, level }, resolve) => {
         parentId = '',
         primaryKeyId = ''
     if (level !== 0) {
-        const nodeData = getObjValue(item)
+        const nodeData = getObjValue(node.data)
         contractIdRelation = nodeData?.contractIdRelation || ''
         parentId = contractIdRelation ? nodeData?.primaryKeyId : nodeData?.id
         primaryKeyId = nodeData?.id || ''
     }
+ console.log(parentId, 'parentId')
  
     //获取数据
     const { data } = await queryApi.queryWbsTreeData({