fix 部门管理 右键删除完 没有重新调接口

This commit is contained in:
赵霄
2023-09-11 18:22:15 +08:00
parent dae0c2c90c
commit ddaa858fc1
+3 -2
View File
@@ -64,7 +64,8 @@
<a-menu-item key="6" @click="closeAll">{{ $t('mergeAll') }}</a-menu-item> <a-menu-item key="6" @click="closeAll">{{ $t('mergeAll') }}</a-menu-item>
</a-menu> </a-menu>
<a-button> <a-button>
{{ $t('treeOperation') }} <a-icon type="up" /> {{ $t('treeOperation') }}
<a-icon type="up" />
</a-button> </a-button>
</a-dropdown> </a-dropdown>
</div> </div>
@@ -471,7 +472,7 @@ export default {
this.$confirm({ this.$confirm({
title: this.$t('confirmDeletion'), title: this.$t('confirmDeletion'),
content: this.$t('depart.deleteDepartmentData'), content: this.$t('depart.deleteDepartmentData'),
onOk: function () { onOk: () => {
deleteByDepartId({ id: that.rightClickSelectedKey }).then((resp) => { deleteByDepartId({ id: that.rightClickSelectedKey }).then((resp) => {
if (resp.success) { if (resp.success) {
// 删除成功后,去除已选中中的数据 // 删除成功后,去除已选中中的数据