|
@@ -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({
|