文档拆分 树形结构上移下移
This commit is contained in:
@@ -592,8 +592,16 @@ export default {
|
|||||||
},
|
},
|
||||||
// 树上移
|
// 树上移
|
||||||
orgMoveUp(){
|
orgMoveUp(){
|
||||||
console.log(this.nodeItem)
|
let query = {
|
||||||
getAction(`split/sarFileSplitMenu/deleteMenu`, { id: this.nodeItem.id }).then(res => {
|
moveFlag:'up',
|
||||||
|
infoId:this.infoId,
|
||||||
|
SarFileSplitMenu:{
|
||||||
|
id:this.nodeItem.id,
|
||||||
|
pId:this.nodeItem.pid,
|
||||||
|
displaySeq:this.nodeItem.displaySeq
|
||||||
|
}
|
||||||
|
}
|
||||||
|
postAction(`split/sarFileSplitMenu/moveUpOrDown`, query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
@@ -608,9 +616,33 @@ export default {
|
|||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},// 树下移
|
},
|
||||||
|
// 树下移
|
||||||
orgmoveDown(){
|
orgmoveDown(){
|
||||||
console.log(this.nodeItem)
|
let query = {
|
||||||
|
moveFlag:'down',
|
||||||
|
infoId:this.infoId,
|
||||||
|
SarFileSplitMenu:{
|
||||||
|
id:this.nodeItem.id,
|
||||||
|
pId:this.nodeItem.pid,
|
||||||
|
displaySeq:this.nodeItem.displaySeq
|
||||||
|
}
|
||||||
|
}
|
||||||
|
postAction(`split/sarFileSplitMenu/moveUpOrDown`, query).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.loadMenuData()
|
||||||
|
let queryParam = {
|
||||||
|
menu_id: this.menuId,
|
||||||
|
info_id: this.infoId
|
||||||
|
|
||||||
|
}
|
||||||
|
eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
||||||
|
// eventBUs.$emit('searchReset')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onContextMenuClick(treeKey, menuKey) {
|
onContextMenuClick(treeKey, menuKey) {
|
||||||
|
|||||||
Reference in New Issue
Block a user