mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
[fix]修改Tree移动节点的提示信息
This commit is contained in:
@@ -174,8 +174,8 @@ export default {
|
|||||||
},
|
},
|
||||||
onDrop: function(event, treeId, treeNodes, targetNode, moveType) {
|
onDrop: function(event, treeId, treeNodes, targetNode, moveType) {
|
||||||
const treeNodesIds = []
|
const treeNodesIds = []
|
||||||
|
const vm = this
|
||||||
$.each(treeNodes, function(index, value) {
|
$.each(treeNodes, function(index, value) {
|
||||||
console.log(value)
|
|
||||||
treeNodesIds.push(value.meta.node.id)
|
treeNodesIds.push(value.meta.node.id)
|
||||||
})
|
})
|
||||||
const the_url = `${this.treeSetting.nodeUrl}${targetNode.meta.node.id}/children/add/`
|
const the_url = `${this.treeSetting.nodeUrl}${targetNode.meta.node.id}/children/add/`
|
||||||
@@ -184,7 +184,10 @@ export default {
|
|||||||
nodes: treeNodesIds
|
nodes: treeNodesIds
|
||||||
}
|
}
|
||||||
).then((res) => {
|
).then((res) => {
|
||||||
console.log(res)
|
vm.$refs.dataztree.refresh()
|
||||||
|
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||||
|
}).catch(error => {
|
||||||
|
this.$message.error(this.$t('common.updateErrorMsg' + ' ' + error))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addTreeNode: function() {
|
addTreeNode: function() {
|
||||||
|
Reference in New Issue
Block a user