[update] 内部工作组左侧树第三级删除换接口
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
<i class="iconfont icon-bianji"></i>
|
<i class="iconfont icon-bianji"></i>
|
||||||
</a-button>
|
</a-button>
|
||||||
<!-- 删除 -->
|
<!-- 删除 -->
|
||||||
<a-button class="tree-operate-node-btn" @click="handleTreeDelete">
|
<a-button class="tree-operate-node-btn" @click="handleWorkGroupDelete">
|
||||||
<i class="iconfont icon-shanchu_"></i>
|
<i class="iconfont icon-shanchu_"></i>
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -243,7 +243,8 @@ export default {
|
|||||||
importExcelUrl: '/sys/lawsWorkingGroupUser/importExcel',
|
importExcelUrl: '/sys/lawsWorkingGroupUser/importExcel',
|
||||||
exportXlsUrl: '/sys/lawsWorkingGroupUser/export',
|
exportXlsUrl: '/sys/lawsWorkingGroupUser/export',
|
||||||
delete: '/sys/lawsWorkingGroupUser/delete',
|
delete: '/sys/lawsWorkingGroupUser/delete',
|
||||||
downTemplateUrl: '/sys/lawsWorkingGroupUser/download/template'
|
downTemplateUrl: '/sys/lawsWorkingGroupUser/download/template',
|
||||||
|
treeWorkGroupDelete: '/sys/lawsWorkingGroup/deleteWorkGroup'
|
||||||
},
|
},
|
||||||
currentUserId: '',
|
currentUserId: '',
|
||||||
currentNodeObj: {} // 当前左侧树节点对象
|
currentNodeObj: {} // 当前左侧树节点对象
|
||||||
@@ -335,6 +336,25 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 左侧树第三级点击删除
|
||||||
|
handleWorkGroupDelete () {
|
||||||
|
const param = {}
|
||||||
|
param.id = this.mouseInNodeKey
|
||||||
|
this.$confirm({
|
||||||
|
title: this.$t('confirmDeletion'),
|
||||||
|
content: this.$t('confirmDeleteNodes'),
|
||||||
|
onOk: () => {
|
||||||
|
postAction(this.url.treeWorkGroupDelete, param).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.initTreeData()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 左侧树节点新增或编辑完成
|
// 左侧树节点新增或编辑完成
|
||||||
treeNodeModalOk () {
|
treeNodeModalOk () {
|
||||||
this.initTreeData()
|
this.initTreeData()
|
||||||
|
|||||||
Reference in New Issue
Block a user