[update 拆分排序] 问题调整
This commit is contained in:
@@ -406,9 +406,9 @@ export default {
|
|||||||
const targetId = info.node.eventKey
|
const targetId = info.node.eventKey
|
||||||
// 序号,拖拽到节点里面,就把序号设置成最后一个节点的序号
|
// 序号,拖拽到节点里面,就把序号设置成最后一个节点的序号
|
||||||
let displaySeq = 0
|
let displaySeq = 0
|
||||||
const parentNodeData = this.getParentNode(this.treeData, info.node.eventKey)
|
const children = info.node.dataRef.children || []
|
||||||
if (parentNodeData && parentNodeData.children && parentNodeData.children.length) {
|
if (children && children.length) {
|
||||||
displaySeq = parentNodeData.children[parentNodeData.children.length - 1].displaySeq
|
displaySeq = children[children.length - 1].displaySeq
|
||||||
}
|
}
|
||||||
this.treeNodeSort({ sourceId, targetId, displaySeq })
|
this.treeNodeSort({ sourceId, targetId, displaySeq })
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -50,7 +50,6 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { batchEditClauseTreeNodeSort, dragClauseTreeNode, getClauseTreeData } from '@api/documentToolApi'
|
import { batchEditClauseTreeNodeSort, dragClauseTreeNode, getClauseTreeData } from '@api/documentToolApi'
|
||||||
import STreeSelect from '@comp/STreeSelect'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SplitTreeOrderModal',
|
name: 'SplitTreeOrderModal',
|
||||||
@@ -133,9 +132,9 @@ export default {
|
|||||||
const targetId = info.node.eventKey
|
const targetId = info.node.eventKey
|
||||||
// 序号,拖拽到节点里面,就把序号设置成最后一个节点的序号
|
// 序号,拖拽到节点里面,就把序号设置成最后一个节点的序号
|
||||||
let displaySeq = 0
|
let displaySeq = 0
|
||||||
const parentNodeData = this.getParentNode(this.treeData, info.node.eventKey)
|
const children = info.node.dataRef.children || []
|
||||||
if (parentNodeData && parentNodeData.children && parentNodeData.children.length) {
|
if (children && children.length) {
|
||||||
displaySeq = parentNodeData.children[parentNodeData.children.length - 1].displaySeq
|
displaySeq = children[children.length - 1].displaySeq
|
||||||
}
|
}
|
||||||
this.treeNodeSort({ sourceId, targetId, displaySeq })
|
this.treeNodeSort({ sourceId, targetId, displaySeq })
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user