[update 拆分编辑] 左侧树节点可拖拽
This commit is contained in:
@@ -356,10 +356,10 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// console.log('拖拽全部参数', info)
|
// console.log('拖拽全部参数', info)
|
||||||
console.log('拖拽的节点', info.node.eventKey, info.node.dataRef.name, info.node.dataRef.itemName)
|
console.log('拖拽的节点', info.dragNode.eventKey, info.dragNode.dataRef.name, info.dragNode.dataRef.itemName)
|
||||||
console.log('拖拽到节点', info.dragNode.eventKey, info.dragNode.dataRef.name, info.dragNode.dataRef.itemName)
|
console.log('拖拽到节点', info.node.eventKey, info.node.dataRef.name, info.node.dataRef.itemName)
|
||||||
const sourceId = info.node.eventKey
|
const sourceId = info.dragNode.eventKey
|
||||||
const targetId = info.dragNode.eventKey
|
const targetId = info.node.eventKey
|
||||||
this.loading = true
|
this.loading = true
|
||||||
dragClauseTreeNode({ targetId, sourceId }).then(res => {
|
dragClauseTreeNode({ targetId, sourceId }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user