|
@@ -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方法进行去重
|