Browse Source

合同计量单元负责

duy 8 months ago
parent
commit
464a83eb2b
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/views/project/debit/contract/components/unit/tree-form.vue

+ 7 - 3
src/views/project/debit/contract/components/unit/tree-form.vue

@@ -290,7 +290,7 @@ const treeNodeCheck = (_, { checkedNodes }) => {
             endStake: '',
             endStake: '',
             contractPicture: '',
             contractPicture: '',
             isAddChildNode: item.isAddChildNode,
             isAddChildNode: item.isAddChildNode,
-            leftNodeId:item.id },
+           },
         )
         )
     })
     })
 
 
@@ -298,8 +298,12 @@ const treeNodeCheck = (_, { checkedNodes }) => {
 
 
     if (checkedNodes.length > 0 ) {
     if (checkedNodes.length > 0 ) {
         tableData.value.unshift(
         tableData.value.unshift(
-          { ...parentData.value,
-            isAddChildNode:1 },
+            { nodeName: parentData.value.nodeName,
+            startStake: '',
+            endStake: '',
+            contractPicture: '',
+            isAddChildNode: parentData.value.isAddChildNode || 1,
+             },
         )
         )
         let alarr = tableData.value
         let alarr = tableData.value
              // 使用reduce方法进行去重
              // 使用reduce方法进行去重