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