[update 拆分排序] 修改拖拽到节点中序号错误的问题
This commit is contained in:
@@ -405,7 +405,7 @@ export default {
|
||||
const sourceId = info.dragNode.eventKey
|
||||
const targetId = info.node.eventKey
|
||||
// 序号,拖拽到节点里面,就把序号设置成最后一个节点的序号
|
||||
let displaySeq = 0
|
||||
let displaySeq = info.node.dataRef.displaySeq
|
||||
const children = info.node.dataRef.children || []
|
||||
if (children && children.length) {
|
||||
displaySeq = children[children.length - 1].displaySeq
|
||||
|
||||
@@ -133,7 +133,7 @@ export default {
|
||||
const sourceId = this.checkTreeKeys.checked.join(',')
|
||||
const targetId = info.node.eventKey
|
||||
// 序号,拖拽到节点里面,就把序号设置成最后一个节点的序号
|
||||
let displaySeq = 0
|
||||
let displaySeq = info.node.dataRef.displaySeq
|
||||
const children = info.node.dataRef.children || []
|
||||
if (children && children.length) {
|
||||
displaySeq = children[children.length - 1].displaySeq
|
||||
|
||||
Reference in New Issue
Block a user